From 75895ae9f774cc45e059ff5189cc8fb0deee7a4a Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 3 Feb 2017 16:17:04 +0100 Subject: [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. --- addons/web/static/src/js/widgets/model_field_selector.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js') 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 -- cgit v1.2.3