From fd7521471104b283e6fdcf3268e6dc1e940f0517 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Fri, 9 Feb 2024 11:32:12 +0100 Subject: [PATCH] [FIX] account_product_fiscal_classification : When the module is installed, having default has no sense. It also generate error when mass importing, if the default values doesn't match with a fiscal classification. As a result, in a demo database, installing a module that create a product when account_product_fiscal_classification is installed will fail --- .../models/product_template.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/account_product_fiscal_classification/models/product_template.py b/account_product_fiscal_classification/models/product_template.py index 6be5c9adc..350648e3f 100644 --- a/account_product_fiscal_classification/models/product_template.py +++ b/account_product_fiscal_classification/models/product_template.py @@ -14,6 +14,10 @@ class ProductTemplate(models.Model): _inherit = "product.template" + taxes_id = fields.Many2many(default=False) + + supplier_taxes_id = fields.Many2many(default=False) + fiscal_classification_id = fields.Many2one( comodel_name="account.product.fiscal.classification", string="Fiscal Classification",