[MIG] web_disable_export_group: Migration to 16.0

TT45881
This commit is contained in:
David
2024-03-04 17:48:12 +01:00
parent 750a8babb2
commit 111944e008
9 changed files with 48 additions and 32 deletions

View File

@@ -1,12 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<templates>
<t t-extend="ListView.buttons">
<t t-jquery="t[t-if*='widget.isExportEnable']" t-operation="attributes">
<t
t-name="web.ListView.Buttons.disbaleExport"
t-inherit="web.ListView.Buttons"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//t[contains(@t-if, 'isExportEnable')]" position="attributes">
<attribute
name="t-if"
>widget.is_action_enabled('export_xlsx') and widget.isExportXlsEnable</attribute>
</t>
>nbTotal and !nbSelected and activeActions.exportXlsx and isExportXlsEnable and !env.isSmall</attribute>
</xpath>
</t>
</templates>