From 966eaf66dd38487ed5f804fe9e87374089e8e545 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 --- .../static/src/js/basic_fields.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 0a331ba57038..93fc4b24ce38 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,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