From fbfd0119041ca7dc830796e76d9ae5c303459d4f Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 15 Feb 2018 18:14:58 +0100 Subject: =?UTF-8?q?[REF]=20*:=20get=20rid=20of=20introduced=20@=E2=80=8Bex?= =?UTF-8?q?tend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During first scss convertion, classes called as mixins were changed to an @​extend instruction which was the best approximation given the fact there is no equivalent in sass to do that. The problem is that the instruction is slowing the scss computation a lot and might also break the style in unexpected ways because of the complex unwanted selectors the instruction induces. This commit removes the need of extends. This is done case per case. Sometimes this involves adding classes in xml, sometimes to change the style a little, ... The button rendering refactoring which was made at the start of the LESS to SASS merge was also done in prevision of this. After this commit, sass computation is like 5-6 times faster than less computation while it was like 10 times *slower* before this commit. --- addons/base_import/static/src/xml/base_import.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/base_import/static/src/xml/base_import.xml') diff --git a/addons/base_import/static/src/xml/base_import.xml b/addons/base_import/static/src/xml/base_import.xml index f882bf7f557..276d9ca0245 100644 --- a/addons/base_import/static/src/xml/base_import.xml +++ b/addons/base_import/static/src/xml/base_import.xml @@ -68,7 +68,7 @@ Track history during import -
@@ -84,7 +84,7 @@ -

If the file contains +

If the file contains the column names, Odoo can try auto-detecting the field corresponding to the column. This makes imports simpler especially when the file has many columns.

@@ -124,7 +124,7 @@ -
+

Import preview failed due to: .

For CSV files, the issue could be an incorrect encoding.

Here is the start of the file we could not import:

@@ -133,7 +133,7 @@
  • + t-attf-class="oe_import_report bg-#{error_value[0].type} text-#{error_value[0].type}"> -- cgit v1.2.3