From c3080e54ed88092815acbec628c77253fbd6616b Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Fri, 8 May 2020 12:32:14 +0000 Subject: [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) Co-authored-by: Mohammed Shekha --- addons/web/static/src/xml/base.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/xml/base.xml') 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" /> -- cgit v1.2.3