[MIG]web_m2x_options: Migration to 17.0

This commit is contained in:
manu
2024-07-22 17:13:53 +02:00
parent f6edfac2f9
commit 6c3884f025
18 changed files with 543 additions and 730 deletions

View File

@@ -3,7 +3,6 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<templates xml:space="preserve">
<t
t-name="web_m2x_options.AutoComplete"
t-inherit="web.AutoComplete"
@@ -15,32 +14,17 @@
</xpath>
</t>
<t
<t
t-name="web_m2x_options.Many2ManyTagsField"
t-inherit="web.Many2ManyTagsField"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//Many2XAutocomplete" position="attributes">
<attribute name="nodeOptions">props.nodeOptions</attribute>
<attribute name="searchLimit">props.searchLimit</attribute>
<attribute name="fieldColor">props.fieldColor</attribute>
<attribute name="fieldColorOptions">props.fieldColorOptions</attribute>
</xpath>
</t>
<t t-name="web_m2x_options.Many2OneField.CreateConfirmationDialog" owl="1">
<Dialog title="title" size="'md'">
<div>
You are creating a new <strong t-esc="props.value" /> as a new <t
t-esc="props.name"
/>, are you sure it does not exist yet?
</div>
<t t-set-slot="footer">
<button class="btn btn-primary" t-on-click="onCreate">Create</button>
<button
class="btn btn-primary"
t-on-click="onCreateEdit"
>Create and Edit</button>
<button class="btn" t-on-click="() => props.close()">Discard</button>
</t>
</Dialog>
</t>
</templates>