diff --git a/product_category_tax/product.py b/product_category_tax/product.py index 64bb198..a82154b 100644 --- a/product_category_tax/product.py +++ b/product_category_tax/product.py @@ -50,7 +50,7 @@ class ProductTemplate(models.Model): _name = 'product.template' @api.one - @api.constrains('taxes_id', 'supplier_taxes_id') + @api.constrains('taxes_id', 'supplier_taxes_id', 'categ_id') def _check_tax_categ(self): # self.name != 'Pay Debt' is a stupid hack to avoid blocking the # installation of the module 'pos_debt_notebook'