mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-23 05:42:13 -06:00
[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:
committed by
Pedro M. Baeza
parent
27ea491285
commit
0aa97eff14
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user