diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-03-19 13:17:22 +0100 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-03-19 15:17:10 +0100 |
| commit | e2dd31cd7bb51f3908c8737f6d474312afa948f4 (patch) | |
| tree | c014a33b158e0090c26f01e0b4c6b579e1b1e454 /addons/web/static/src | |
| parent | 70f3d453b5a76bbcb88943ed0cba24962ebff8a1 (diff) | |
[FIX] web: set correct menu_id on menu action
Before this commit, the menu_id displayed in the url was incorrect
when we click on a menu item for the first time.
This is due to the fact that the web_client was mistakenly using the
previous menu_id as the action's menu_id: the JS widget menu is not
up-to-date with the value of the current menuID, and the web client
was relying on its internal state instead of the server's response.
With this commit, the web client uses the server's reponse to
register the correct menuID that has been clicked.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome/web_client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/web_client.js b/addons/web/static/src/js/chrome/web_client.js index e7dcb2ae244..ebbc0bb3143 100644 --- a/addons/web/static/src/js/chrome/web_client.js +++ b/addons/web/static/src/js/chrome/web_client.js @@ -160,7 +160,7 @@ return AbstractWebClient.extend({ var completed = $.Deferred(); $.when(self.action_manager.do_action(result, { clear_breadcrumbs: true, - action_menu_id: self.menu.current_menu, + action_menu_id: options.id, })).fail(function() { self.menu.open_menu(options.previous_menu_id); }).always(function() { |
