[FIX] web_widget_domain_editor_dialog: keep context

The dialog needs to keep the context so translations and other things
work as expected.

TT45543
This commit is contained in:
David
2023-10-18 10:38:08 +02:00
parent 9733e6633f
commit e32b2af184

View File

@@ -25,7 +25,10 @@ odoo.define("web_widget_domain_editor_dialog.basic_fields", function (require) {
readonly: false,
disable_multiple_selection: false,
no_create: true,
context: this.record.getContext({
fieldName: this.name,
viewType: this.viewType,
}),
on_selected: function (selected_ids) {
_this.inDomainEditor = true;
_this.domainSelector