From 8173c33a12cc64f0643938b92f386b2feb3f6422 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 18 Oct 2023 10:38:08 +0200 Subject: [PATCH] [FIX] web_widget_domain_editor_dialog: keep context The dialog needs to keep the context so translations and other things work as expected. TT45543 --- web_widget_domain_editor_dialog/static/src/js/basic_fields.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_widget_domain_editor_dialog/static/src/js/basic_fields.js b/web_widget_domain_editor_dialog/static/src/js/basic_fields.js index 400d65f72..20d7ce82a 100644 --- a/web_widget_domain_editor_dialog/static/src/js/basic_fields.js +++ b/web_widget_domain_editor_dialog/static/src/js/basic_fields.js @@ -26,6 +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