From c706ae6e4f0a2ce1a0f4dd5d195fc7b4cb86e0c5 Mon Sep 17 00:00:00 2001 From: std-odoo Date: Thu, 13 Apr 2023 08:28:15 +0000 Subject: [PATCH] [IMP] web: use the `and` syntax instead of `&&` for properties Purpose ======= Most of the template in web use the `and` syntax instead of `&&`, use this syntax for consistency. Task-3188915 Part-of: odoo/odoo#119811 --- .../fields/properties/kanban_properties_field.xml | 2 +- .../src/views/fields/properties/properties_field.xml | 7 +++---- .../views/fields/properties/property_definition.xml | 8 ++++---- .../src/views/fields/properties/property_value.xml | 10 +++++----- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/addons/web/static/src/views/fields/properties/kanban_properties_field.xml b/addons/web/static/src/views/fields/properties/kanban_properties_field.xml index da64acad01e..a4d5ac5da3d 100644 --- a/addons/web/static/src/views/fields/properties/kanban_properties_field.xml +++ b/addons/web/static/src/views/fields/properties/kanban_properties_field.xml @@ -6,7 +6,7 @@ t-foreach="propertiesList" t-as="propertyConfiguration" t-key="propertyConfiguration.name" - t-if="(propertyConfiguration.value || ['integer', 'float'].includes(propertyConfiguration.type)) && propertyConfiguration.view_in_kanban"> + t-if="(propertyConfiguration.value || ['integer', 'float'].includes(propertyConfiguration.type)) and propertyConfiguration.view_in_kanban">
@@ -52,7 +52,7 @@ class="o_field_property_add" t-att-class="{'g-col-2': props.columns !== 1, 'd-none': state.hideAddButton}">
- diff --git a/addons/web/static/src/views/fields/properties/property_definition.xml b/addons/web/static/src/views/fields/properties/property_definition.xml index bd0e1153501..aa0ef389683 100644 --- a/addons/web/static/src/views/fields/properties/property_definition.xml +++ b/addons/web/static/src/views/fields/properties/property_definition.xml @@ -26,7 +26,7 @@