diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-08-03 15:14:24 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-08-04 08:25:33 +0200 |
| commit | 7cd2f63705f8c4ddfd05c70d79aa6261ae191d18 (patch) | |
| tree | 7518af4a55db50845782a251011ec9fb46ca9309 /addons/web/static | |
| parent | 54e4e3156f5990a9e58abaad5e051c7ea67aea74 (diff) | |
[FIX] *: cancel settings
To reproduce:
- Go Website Admin > Configuration > Settings
- Change the Website Name
- Click on 'Cancel'
The name is saved.
When the "Cancel" button is clicked, we automatically save the record
(which is a transient model). Since the field is a related to the
company, the name is changed even if we canceled.
opw-760749
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/js/views/form_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/form_view.js b/addons/web/static/src/js/views/form_view.js index 2ca20d5f9ab..ce850dc5ff5 100644 --- a/addons/web/static/src/js/views/form_view.js +++ b/addons/web/static/src/js/views/form_view.js @@ -942,7 +942,7 @@ var FormView = View.extend(common.FieldManagerMixin, { var self = this; return this.reload_mutex.exec(function() { if (self.dataset.index === null || self.dataset.index === undefined) { - self.trigger("previous_view"); + self.do_action('reload'); return $.Deferred().reject().promise(); } if (self.dataset.index < 0) { |
