[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 828fd058f1
commit 966eaf66dd

View File

@@ -26,7 +26,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