[FIX][document_url] Remove error when clicking on add URL (#102)

[FIX][document_url] Remove error when clicking on add URL

BTW, completely refactored 😉. It turns out Odoo's framework is not that bad when you discover it. It's just not documented.
This commit is contained in:
Jairo Llopis
2016-10-14 03:17:51 +02:00
committed by Pedro M. Baeza
parent 27ea491285
commit 0aa97eff14
4 changed files with 34 additions and 52 deletions

View File

@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="AddUrlDocumentItem">
<li class="oe_sidebar_add_url">
<a class="oe_file_attachment">Add URL...</a>
</li>
</t>
<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">
<a class="oe_file_attachment"
data-section="url_doc"
data-index="0">Add URL...</a>
</li>
</t>
</t>
</templates>