summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorHardik Prajapati <hap@odoo.com>2020-05-08 12:32:14 +0000
committerAaron Bohy <aab@odoo.com>2020-06-29 18:51:47 +0000
commitc3080e54ed88092815acbec628c77253fbd6616b (patch)
tree2a06afa493830e29a8847ed79a100d4b09e3694f /addons/web/static/src/xml
parent499a649b162995ad2bf54f2bb1a50951653ed5ad (diff)
[FIX] web: update action on archive/unarchive
Before this commit, when archiving a record through the action menu, the 'Archive' link was not updated to 'Unarchive' and same when unarchive was clicked, the link was not updated to 'Archive'. After this commit, when archiving a record through the action menu, the 'Archive' link is updated to 'Unarchive', same way when unarchiving a record link is updated to 'Archive'. This commit also introduces a new prop 'closeOnSelected' to the Dropdown component, to specify whether the dropdown should be closed when an item is selected, and makes Action Menu dropdown closed on item selected. task-2251739 closes odoo/odoo#53835 X-original-commit: dc5d02ade7747c74c31566c74932ef45c30e9356 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 0c3c5813a87..7cb009b95fb 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -624,6 +624,7 @@
title="env._t('Action')"
items="actionItems"
icon="'fa fa-cog'"
+ closeOnSelected="true"
/>
</div>
</t>