[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/2643/head
David 2023-10-18 10:38:08 +02:00
parent 828fd058f1
commit 966eaf66dd
1 changed files with 4 additions and 1 deletions

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