diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-02-03 16:17:04 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-02-03 16:17:04 +0100 |
| commit | 75895ae9f774cc45e059ff5189cc8fb0deee7a4a (patch) | |
| tree | df9be6d68f2482182581144e2927cfcb4f0cd2a2 /addons/web/static/src | |
| parent | 82ef921874ed40fc7b9bb58e5aa6033c46f5958e (diff) | |
[FIX] web: properly notify field chain change on shortening
Before this commit, when opening a field chain with a field selector
and only removing parts of it and closing, the field selector was not
notifying the change.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/widgets/model_field_selector.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/model_field_selector.js b/addons/web/static/src/js/widgets/model_field_selector.js index da8ab8300f6..1310aa97ea7 100644 --- a/addons/web/static/src/js/widgets/model_field_selector.js +++ b/addons/web/static/src/js/widgets/model_field_selector.js @@ -155,6 +155,7 @@ var ModelFieldSelector = Widget.extend({ }, /// The removeChainNode method removes the last field name at the end of the current field chain. removeChainNode: function () { + this.dirty = true; this.setChain(this.chain.substring(0, this.chain.lastIndexOf("."))); }, /// The validate method toggles the valid status of the widget and display the error message if it |
