[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.
This commit is contained in:
qsm-odoo
2017-02-03 16:17:04 +01:00
parent 82ef921874
commit 75895ae9f7
@@ -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