diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-08-03 13:30:38 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-08-03 16:17:19 +0000 |
| commit | 721f38b11d0fdf246d32a6d334ed00bea00ac752 (patch) | |
| tree | aa4c0e73db5f748c9cc671f8456f27cd68ae3ca1 /odoo/addons/base/static/src | |
| parent | ee623f1f260873c5717ccc04a53f1c67fc9b78f4 (diff) | |
[FIX] base: can execute action from settings
Before this commit, when being in a settings form view with at
least two items in the breadcrumbs (the settings view preceeded by
another one), clicking on a button to execute an action didn't
properly work: an history back was done instead, thus returning to
the previous action.
For instance, go to Sales (without demo data), click on 'Set
payments' in the onboarding banner, click 'Go to the configuration
panel', and in the settings view click on 'Install More Packages'.
The issue has been introduced by [1], but we couldn't find a
scenario to reproduce it before saas-13.3.
[1] a3845ae3f058772d4b548c703f5ddf94b571d903
Issue spotted in task 2277314
closes odoo/odoo#55351
X-original-commit: 6ccb108e9a621a672fde715ea78656ffeb6834e5
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'odoo/addons/base/static/src')
| -rw-r--r-- | odoo/addons/base/static/src/js/res_config_settings.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/static/src/js/res_config_settings.js b/odoo/addons/base/static/src/js/res_config_settings.js index 67e2979c308..ab09eaa7c27 100644 --- a/odoo/addons/base/static/src/js/res_config_settings.js +++ b/odoo/addons/base/static/src/js/res_config_settings.js @@ -297,7 +297,7 @@ var BaseSettingController = FormController.extend({ var recordID = ev.data.recordID; var _super = this._super; var args = arguments; - this._discardChanges(recordID).then(function () { + this._discardChanges(recordID, { noAbandon: true }).then(function () { _super.apply(self, args); }); } else { |
