diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 73ccedc69..40d5b7f97 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,7 +9,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "16.0.1.1.0", + "version": "17.0.1.0.0", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 481994e8a..94ce24873 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -167,7 +167,7 @@ def create(self, vals_list): vals["reference_mask"] = product._get_default_mask() elif vals.get("reference_mask"): sanitize_reference_mask(product, vals["reference_mask"]) - return super(ProductTemplate, self).create(vals_list) + return super().create(vals_list) @api.model def _guess_main_lang(self): diff --git a/product_variant_default_code/readme/CONTRIBUTORS.md b/product_variant_default_code/readme/CONTRIBUTORS.md index 5544620ec..93e848773 100644 --- a/product_variant_default_code/readme/CONTRIBUTORS.md +++ b/product_variant_default_code/readme/CONTRIBUTORS.md @@ -7,3 +7,5 @@ - David Vidal - Pedro M. Baeza - João Marques +- [360ERP](https://www.360erp.com): + - Andrea Stirpe diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 2e243f452..3b7c21f23 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -10,7 +10,7 @@ class TestVariantDefaultCode(TransactionCase): @classmethod def setUpClass(cls): - super(TestVariantDefaultCode, cls).setUpClass() + super().setUpClass() cls.group_default_code = cls.env.ref( "product_variant_default_code.group_product_default_code_manual_mask" ) diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index 3f0b45cea..df6aa7025 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -4,34 +4,19 @@ res.config.settings - -

Product Variants

-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
+ + + + + + + + +
diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 51997e2a3..f2c3e45dd 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -5,16 +5,11 @@ - + @@ -23,7 +18,7 @@ name="variant_default_code_error" class="alert alert-danger alert-dismissable" role="alert" - attrs="{'invisible':[('variant_default_code_error','=', False)]}" + invisible="not variant_default_code_error" />