Skip to content

Commit

Permalink
[FIX] web: can reopen ModelField selector widget
Browse files Browse the repository at this point in the history
Before this fix, in studio when the user select the field then focus out
then focus in and selected a child field, an exception is triggered because
the last page is visible but the data are removed.

backport of 12.0's 9eef25a

opw-1928453
closes #30277
  • Loading branch information
Gorash authored and nle-odoo committed Jan 16, 2019
1 parent 4c93e4b commit 586dc9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion addons/web/static/src/js/widgets/model_field_selector.js
Expand Up @@ -257,7 +257,6 @@ var ModelFieldSelector = Widget.extend({

if (this.dirty) {
this.dirty = false;
this.pages = this.pages.slice(0, this.chain.length || 1);
this.trigger_up("field_chain_changed", {chain: this.chain});
}
},
Expand Down

0 comments on commit 586dc9e

Please sign in to comment.