[MIG] document_url: Migration to 14.0

TT30263
This commit is contained in:
Víctor Martínez
2021-10-11 12:10:26 +02:00
committed by FernandoRomera
parent 5efdde8269
commit 4aa14473eb
6 changed files with 38 additions and 36 deletions

View File

@@ -1,17 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2018 Tecnativa - Ernesto Tejeda
Copyright 2021 Tecnativa - Víctor Martínez
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<templates id="template" xml:space="preserve">
<t t-extend="mail.AttachmentBox">
<t t-jquery="button.o_AttachmentBox_buttonAdd" t-operation="after">
<templates xml:space="preserve">
<t t-inherit="mail.AttachmentBox" t-inherit-mode="extension" owl="1">
<xpath expr="//button[hasclass('o_AttachmentBox_buttonAdd')]" position="after">
<button
type="button"
class="o_add_url_button btn btn-link"
t-on-click="_onClickAdd"
t-on-click="_onAddUrl"
>
<i class="fa fa-plus-square" />
Add URL
</button>
</t>
</xpath>
</t>
</templates>