diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-12-19 07:40:31 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-12-19 07:40:31 +0000 |
| commit | 5545787e2ce1dc4e4b151bd8d21731012f5b8527 (patch) | |
| tree | 64ae65eb63c97c06c8bd1b8d613c14e000b03ff2 /addons/web/static/src/js/chrome | |
| parent | 906183ac0b2472894a66000d75f4e850661107fd (diff) | |
[FIX] web: fetch toolbar info for target=current actions
The 'Actions' menu displayed in the control panel (aka sidebar, or
toolbar), wasn't displayed anymore since the control panel
refactoring of 4cd379cf6e. Rev. c1752b834 correctly made it appear
again in list and form views. However, there was another issue as
the additional model-related items (like Print, or custom actions)
weren't fetched anymore. Thus, the sidebar only contained the
default 'Export' and 'Delete' actions. This rev. fixes the second
issue.
fixes #29546
closes odoo/odoo#29633
Diffstat (limited to 'addons/web/static/src/js/chrome')
| -rw-r--r-- | addons/web/static/src/js/chrome/action_manager_act_window.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager_act_window.js b/addons/web/static/src/js/chrome/action_manager_act_window.js index c1667e9b9e6..106f9f2aa47 100644 --- a/addons/web/static/src/js/chrome/action_manager_act_window.js +++ b/addons/web/static/src/js/chrome/action_manager_act_window.js @@ -396,7 +396,7 @@ ActionManager.include({ var inline = action.target === 'inline'; var options = { action_id: action.id, - toolbar: inDialog && inline, + toolbar: !inDialog && !inline, }; var views = action.views.slice(); if (!inline && !(inDialog && action.views[0][1] === 'form')) { |
