[FIX] web_editor: update leftpanel widget visibility after value updates

The visibility was sometimes updated too soon, while the values were not
updated yet.

Part of https://github.com/odoo/odoo/pull/42407
This commit is contained in:
qsm-odoo
2019-12-27 12:03:47 +00:00
parent cf0146934d
commit a8b0cc451c
@@ -1586,12 +1586,11 @@ const SnippetOptionWidget = Widget.extend({
// hold have been updated).
return widget.updateUI(widget === forced);
});
await Promise.all(proms);
if (!noVisibility) {
await this.updateUIVisibility();
}
return Promise.all(proms);
},
/**
* Updates the UI visibility - @see _computeVisibility. For widget update,