From 6048355feebdfbc99fb1b2f9649fe7854a1eb864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Tue, 9 Oct 2018 08:29:01 +0000 Subject: [PATCH] [IMP] (website_)sale: improve product configurator layout Targets commit d3530eb07e24278117ab396ecb86a59deecc312d Purpose ======= - Improved the layout of the product configurator window in both sale order and web shop - Added some other minor improvements such as editable="bottom" instead of "top", fields reordering, ... closes odoo/odoo#27567 --- .../product/views/product_attribute_views.xml | 4 +- .../src/js/product_configurator_mixin.js | 20 +++++--- .../static/src/scss/product_configurator.scss | 50 ++++++++++++++----- .../sale_product_configurator_templates.xml | 47 +++++++++-------- .../static/src/scss/website_sale.scss | 4 -- 5 files changed, 78 insertions(+), 47 deletions(-) diff --git a/addons/product/views/product_attribute_views.xml b/addons/product/views/product_attribute_views.xml index 43cd832d743..503990fead8 100644 --- a/addons/product/views/product_attribute_views.xml +++ b/addons/product/views/product_attribute_views.xml @@ -21,6 +21,7 @@ @@ -31,7 +32,6 @@ - @@ -111,7 +111,7 @@ - + diff --git a/addons/sale/static/src/js/product_configurator_mixin.js b/addons/sale/static/src/js/product_configurator_mixin.js index 1dfd62b815b..25ee4adf80e 100644 --- a/addons/sale/static/src/js/product_configurator_mixin.js +++ b/addons/sale/static/src/js/product_configurator_mixin.js @@ -108,18 +108,26 @@ var ProductConfiguratorMixin = { $variantContainer.find('.variant_custom_value_label').remove(); $variantContainer.find('.variant_custom_value').remove(); - var $label = $('