[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:
Jairo Llopis 2016-10-17 12:35:16 +02:00
parent 157124cda1
commit 7a0cae0533
3 changed files with 8 additions and 5 deletions

View File

@ -40,7 +40,8 @@ Contributors
------------
* Jonathan Nemry <jonathan.nemry@acsone.eu>
* Pedro M. Baeza <pedro.baeza@tecnativa.com
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
Maintainer
----------

View File

@ -4,11 +4,11 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
{
'name': 'URL attachment',
'version': '9.0.2.0.0',
'version': '9.0.2.0.1',
'category': 'Tools',
'author': "Tecnativa,"
"Odoo Community Association (OCA)",
'website': 'http://www.tecnativa.com',
'website': 'https://www.tecnativa.com',
'license': 'AGPL-3',
'depends': [
'document',

View File

@ -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>