mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-23 13:52:13 -06:00
[FIX][9.0][document_url] Link was appearing in all menus.
Fixes https://github.com/OCA/knowledge/pull/102#issuecomment-253734648.
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
<templates>
|
||||
<t t-extend="Sidebar">
|
||||
<!-- oe_ for Odoo CE, and o_ for Odoo EE -->
|
||||
<t t-jquery=".oe_sidebar_add_attachment, .o_sidebar_add_attachment" t-operation="after">
|
||||
<li class="oe_sidebar_add_url">
|
||||
<t t-jquery=".oe_sidebar_add_attachment, .o_sidebar_add_attachment"
|
||||
t-operation="after">
|
||||
<li class="oe_sidebar_add_url"
|
||||
t-if="section.name == 'files' and widget.options.editable">
|
||||
<a class="oe_file_attachment"
|
||||
data-section="url_doc"
|
||||
data-index="0">Add URL...</a>
|
||||
|
||||
Reference in New Issue
Block a user