[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user