diff options
| author | Dharmraj Jhala <dja@odoo.com> | 2020-09-03 11:32:47 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-29 13:41:09 +0000 |
| commit | 2d12e400e8e851c74a8999cb8cda2c64da1aed82 (patch) | |
| tree | 966d452807d325c05a638168b8a459070674163b | |
| parent | 238a5260d51b35ef32c022348792c8b63b72078e (diff) | |
[FIX] crm: fix randomly broken crm tour
While running 'crm_tour' in test mode and quick creating record on
crm kanban, adding a partner and moving to another field from
tour opens a confirmation dialog asking whther or not you want to
create a new record. This dialog remains open sometimes, breaking
the further flow of tour.
This commit fixes the issue by selecting or creating the record from
drop-down after adding a partner (and before going to further steps),
thus avoiding the confirmation dialog.
Note:
- Because we create/select the partner, the 'name' field is auto filled
and we don't have to set anything in there. So this step is not needed
anymore in the tour.
TaskID - 2323196
closes odoo/odoo#58817
X-original-commit: a592ba14f82028487cee0b060a86881f0175aeda
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
| -rw-r--r-- | addons/crm/static/src/js/tours/crm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/crm/static/src/js/tours/crm.js b/addons/crm/static/src/js/tours/crm.js index 004e904fe56..188cb389b19 100644 --- a/addons/crm/static/src/js/tours/crm.js +++ b/addons/crm/static/src/js/tours/crm.js @@ -33,8 +33,9 @@ tour.register('crm_tour', { actions.text("Brandon Freeman", this.$anchor.find("input")); }, }, { - trigger: ".o_kanban_quick_create .o_field_widget[name='name']", + trigger: ".ui-menu-item > a", auto: true, + in_modal: false, }, { trigger: '.o_kanban_quick_create .o_field_monetary[name="expected_revenue"] input', content: _t("Define here the Expected Revenue of this Opportunity."), |
