From 4833bc84fb6257fc6440ef14d344037636422bad Mon Sep 17 00:00:00 2001 From: "chrysanthe(chgo)" Date: Fri, 21 Apr 2023 08:10:58 +0000 Subject: [PATCH] [IMP] web: improve property fields modal design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The purpose of this commit is to improve the design of the Property field modal as it was done to release something fast. We also introduce a modification of the JS test related to the property header. Before this commit, the structure of the modal was composed of a header and a body. Since we refactored the component in one single block with the class `.o_modal_container`, we apply the `.o_field_property_definition_header` class directly on the input rather than targeting an input inside the header. task-3084756 closes odoo/odoo#126274 X-original-commit: 12a25449d9f26aec5f14482952ca0db40bf612b9 Related: odoo/enterprise#43091 Signed-off-by: Warnon Aurélien (awa) --- addons/web/i18n/web.pot | 14 + .../fields/properties/properties_field.scss | 1 - .../fields/properties/properties_field.xml | 2 +- .../properties/property_definition.scss | 31 +-- .../fields/properties/property_definition.xml | 257 ++++++++---------- .../property_definition_selection.scss | 9 +- .../property_definition_selection.xml | 14 +- .../views/fields/properties/property_tags.xml | 4 +- .../fields/properties/property_value.scss | 4 - .../fields/properties/property_value.xml | 2 +- .../views/fields/properties_field_tests.js | 10 +- 11 files changed, 151 insertions(+), 197 deletions(-) diff --git a/addons/web/i18n/web.pot b/addons/web/i18n/web.pot index c590e1880f8..9e4468e77bc 100644 --- a/addons/web/i18n/web.pot +++ b/addons/web/i18n/web.pot @@ -3196,6 +3196,20 @@ msgstr "" msgid "More" msgstr "" +#. module: web +#. odoo-javascript +#: code:addons/web/static/src/views/fields/properties/property_definition.xml:0 +#, python-format +msgid "Move this Property down" +msgstr "" + +#. module: web +#. odoo-javascript +#: code:addons/web/static/src/views/fields/properties/property_definition.xml:0 +#, python-format +msgid "Move this Property up" +msgstr "" + #. module: web #. odoo-javascript #: code:addons/web/static/src/views/fields/statusbar/statusbar_field.js:0 diff --git a/addons/web/static/src/views/fields/properties/properties_field.scss b/addons/web/static/src/views/fields/properties/properties_field.scss index bbd9efa22f6..239f1193550 100644 --- a/addons/web/static/src/views/fields/properties/properties_field.scss +++ b/addons/web/static/src/views/fields/properties/properties_field.scss @@ -87,7 +87,6 @@ // put the popover behind datetime component z-index: $zindex-popover !important; font-size: inherit; - box-shadow: 0 3rem 5rem rgba($black, .18) !important; box-sizing: border-box; } diff --git a/addons/web/static/src/views/fields/properties/properties_field.xml b/addons/web/static/src/views/fields/properties/properties_field.xml index c5462d32fc4..75875631e38 100644 --- a/addons/web/static/src/views/fields/properties/properties_field.xml +++ b/addons/web/static/src/views/fields/properties/properties_field.xml @@ -9,7 +9,7 @@ t-foreach="propertiesListGroup" t-as="propertyConfiguration" t-key="propertyConfiguration.name" - class="o_property_field d-sm-contents mb-3" + class="o_property_field d-contents mb-2" t-att-property-name="propertyConfiguration.name">