diff options
| author | Siddarth Gajjar <sga@odoo.com> | 2020-05-08 11:52:38 +0000 |
|---|---|---|
| committer | Romeo Fragomeli <rfr@odoo.com> | 2020-07-22 12:58:35 +0000 |
| commit | d4e3298b8b99d7aa005ea6068c528f062278c44e (patch) | |
| tree | 89cee65fd8c8489d31b30a46bedbea3308516898 /addons | |
| parent | 9bc3760af0cd3f21deeaedca1f7b2a631767be28 (diff) | |
[IMP] web_tour: adapt statusBar CTA helper function
Now that for a single visible button there is no 'Action' dropdown, the
tour helper function has to be adapted.
Related PR odoo/enterprise#10602
Task ID: 2225270
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web_tour/static/src/js/tour_step_utils.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/web_tour/static/src/js/tour_step_utils.js b/addons/web_tour/static/src/js/tour_step_utils.js index d49c28f7778..dc69e8968e2 100644 --- a/addons/web_tour/static/src/js/tour_step_utils.js +++ b/addons/web_tour/static/src/js/tour_step_utils.js @@ -102,10 +102,15 @@ return core.Class.extend({ return [ { mobile: true, - trigger: '.o_statusbar_buttons .btn.dropdown-toggle:contains(Action)', + auto: true, + trigger: '.o_statusbar_buttons', extra_trigger: extraTrigger, - content: _t('Open Action Dropdown Menu.'), - position: 'bottom', + run: actions => { + const $action = $('.o_statusbar_buttons .btn.dropdown-toggle:contains(Action)'); + if ($action.length) { + actions.click($action); + } + }, }, { trigger: `.o_statusbar_buttons button:enabled:contains('${innerTextButton}')`, content: description, |
