[FIX] web_widget_domain_editor_dialog: keep context

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

TT45543
pull/2641/head
David 2023-10-18 10:38:08 +02:00
parent 9733e6633f
commit e32b2af184
1 changed files with 4 additions and 1 deletions

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