diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-03-20 10:07:27 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | e1eea38f2f940fbe252273a5a9d4d03474f81d0a (patch) | |
| tree | cdca29bf50385f68ce6aee701b4e8cf64c376a8d /addons/web/static/src | |
| parent | 8f7a445a034a4059c453f9e2847951ee4ab1558e (diff) | |
[FIX] web: attributes is not reseted by setFieldProps
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/view_dialogs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/view_dialogs.js b/addons/web/static/src/js/views/view_dialogs.js index 5ca2cd5c14e..b9870a78e56 100644 --- a/addons/web/static/src/js/views/view_dialogs.js +++ b/addons/web/static/src/js/views/view_dialogs.js @@ -140,8 +140,8 @@ var FormViewDialog = ViewDialog.extend({ * If we changed some fieldAttrs, we need to restore them now. */ destroy: function () { - if (this.recordID && this.fieldAttrs) { - this.setFieldProps(this.recordID, this.previousFieldProps); + if (this.recordID && this.previousFieldProps) { + this.model.setFieldProps(this.recordID, this.previousFieldProps); } this._super.apply(this, arguments); }, |
