From e32b2af1849e95add394868de3e2c6879f3837fb 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 3179bd271..23950a3c7 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 @@ -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