From 2b983293b30167d9bebd73bf2bcdc2af24bec8fd Mon Sep 17 00:00:00 2001 From: Carolina Fernandez Date: Tue, 16 Jan 2024 15:29:14 -0300 Subject: [PATCH] [IMP] sale_variant_configurator: pre-commit stuff --- sale_variant_configurator/models/sale_order.py | 4 +++- .../odoo/addons/sale_variant_configurator | 1 + setup/sale_variant_configurator/setup.py | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 120000 setup/sale_variant_configurator/odoo/addons/sale_variant_configurator create mode 100644 setup/sale_variant_configurator/setup.py diff --git a/sale_variant_configurator/models/sale_order.py b/sale_variant_configurator/models/sale_order.py index 09a426756..501b8a1cc 100644 --- a/sale_variant_configurator/models/sale_order.py +++ b/sale_variant_configurator/models/sale_order.py @@ -102,7 +102,9 @@ def _onchange_product_tmpl_id_configurator(self): self.name = (self.name or "") + "\n" + product_tmpl.description_sale if self.order_id.pricelist_id and self.order_id.partner_id: self.price_unit = self.env["account.tax"]._fix_tax_included_price( - product_tmpl.price, product_tmpl.taxes_id, self.tax_id, + product_tmpl.price, + product_tmpl.taxes_id, + self.tax_id, ) return res diff --git a/setup/sale_variant_configurator/odoo/addons/sale_variant_configurator b/setup/sale_variant_configurator/odoo/addons/sale_variant_configurator new file mode 120000 index 000000000..67cfc6294 --- /dev/null +++ b/setup/sale_variant_configurator/odoo/addons/sale_variant_configurator @@ -0,0 +1 @@ +../../../../sale_variant_configurator \ No newline at end of file diff --git a/setup/sale_variant_configurator/setup.py b/setup/sale_variant_configurator/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/sale_variant_configurator/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)