diff --git a/account_ecotax/models/product_template.py b/account_ecotax/models/product_template.py index 13ff903ff..52df82ce7 100644 --- a/account_ecotax/models/product_template.py +++ b/account_ecotax/models/product_template.py @@ -23,12 +23,13 @@ class ProductTemplate(models.Model): fixed_ecotax = fields.Float( compute="_compute_ecotax", help="Fixed ecotax of the Ecotax Classification", + store=True, ) weight_based_ecotax = fields.Float( compute="_compute_ecotax", help="Ecotax value :\n" - "product weight * ecotax coef of " - "Ecotax Classification", + "product weight * ecotax coef of Ecotax Classification", + store=True, ) @api.depends( diff --git a/account_ecotax/tests/test_ecotax.py b/account_ecotax/tests/test_ecotax.py index c002ab77c..86d88ddd5 100644 --- a/account_ecotax/tests/test_ecotax.py +++ b/account_ecotax/tests/test_ecotax.py @@ -14,7 +14,7 @@ @tagged("-at_install", "post_install") class TestInvoiceEcotaxe(AccountTestInvoicingCommon): @classmethod - def setUpClass(cls, chart_template_ref="l10n_fr.l10n_fr_pcg_chart_template"): + def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref) cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))