From d6bab31a941a1570c4eba499dd2be8dd696a03a0 Mon Sep 17 00:00:00 2001 From: "Stefan-Calin Crainiciuc (stcc)" Date: Thu, 5 Jan 2023 15:40:32 +0000 Subject: [PATCH] [FIX] web: add DomainSelector debugValue default value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce: - Install Events - Activate debug mode - Events > Config > Lead generation > Create Traceback is raised. The `debugValue` prop added in a29691bfd8845ab570a1f4aa7e0cead70852da45 should be a string but doesn't have a default value, and it is evaluated as `false` at runtime. Solution: Add default value for `debugValue`. opw-3056391 closes odoo/odoo#112149 X-original-commit: bec8da1dc250a40b77d02bd5f487f12f5a857dde Signed-off-by: Michaƫl Mattiello --- addons/web/static/src/views/fields/domain/domain_field.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/views/fields/domain/domain_field.xml b/addons/web/static/src/views/fields/domain/domain_field.xml index 132433ac207..980ba3dd47f 100644 --- a/addons/web/static/src/views/fields/domain/domain_field.xml +++ b/addons/web/static/src/views/fields/domain/domain_field.xml @@ -10,7 +10,7 @@ readonly="props.readonly or props.editInDialog" update.bind="update" isDebugMode="!!env.debug" - debugValue="props.value" + debugValue="props.value || '[]'" className="props.readonly ? 'o_read_mode' : 'o_edit_mode'" />