diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-02-06 17:13:27 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-02-13 14:55:18 +0100 |
| commit | 134db4ce99eee3273cb57cc585ad1508b6fe95f5 (patch) | |
| tree | 5f149645864c9fd3261a7996c6065b3f18d0472f /addons/web/static/src | |
| parent | d3703ecb4cbd3ca4c208910c031ae2fadc4b321b (diff) | |
[FIX] web: change selected field value on chain shortening
Before this commit, when opening a field chain with a field selector
and only removing parts of it, the field selector internal "chain"
value was properly updated but not its "selectedField" value.
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 1310aa97ea7..8fa6c36b3be 100644 --- a/addons/web/static/src/js/widgets/model_field_selector.js +++ b/addons/web/static/src/js/widgets/model_field_selector.js @@ -240,6 +240,7 @@ var ModelFieldSelector = Widget.extend({ if (this.pages.length <= 1) return; this.pages.pop(); this.removeChainNode(); + this.selectedField = this._getLastPageField(_.last(this.chain.split("."))); this.displayPage("o_animate_slide_left"); }, /// The goToNextPage method adds a new page to the popover following the given field relation and adapts |
