summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-09-29 13:39:27 +0000
committerAaron Bohy <aab@odoo.com>2020-09-30 19:02:20 +0000
commit7925e30482ad0df4b2a004c223c3eb87f3ce725f (patch)
tree5ee5b1a1fc3c079ee968944ef9e44588cb5bb2da /addons/web/static/src/xml
parentd205778011a2568f1795f55ed0e6f94858cb423c (diff)
[FIX] web: no export button if user not in export group
PR #45400 disabled the export feature for those who were not in group 'base.group_allow_export'. However, it only considered the 'Export' link in the actions menu. In list view, an export button was still displayed in the control panel (next to 'Create'), whether the user was in the group or not. This commit fixes this issue. Task 2348571 closes odoo/odoo#58890 X-original-commit: 1a9c58e4dbd4e7adbc05eada01ec85ac6eb3d427 Related: odoo/enterprise#13722 Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 6ca423f4552..c52c7e0ac60 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -822,7 +822,7 @@
Create
</button>
</t>
- <t t-if="widget.is_action_enabled('export_xlsx')">
+ <t t-if="widget.is_action_enabled('export_xlsx') and widget.isExportEnable">
<button type="button" class="btn btn-secondary fa fa-download o_list_export_xlsx" title="Export All"/>
</t>
</div>