From 9026660416e4a79c8c4b0dde19c9f3ac5aa6cb42 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 13 Feb 2023 22:24:05 +0100 Subject: [PATCH] product_category_tax: add field in constraint --- product_category_tax/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_category_tax/product.py b/product_category_tax/product.py index 560de2f..ca8328e 100644 --- a/product_category_tax/product.py +++ b/product_category_tax/product.py @@ -48,7 +48,7 @@ class ProductTemplate(models.Model): _inherit = ['product.template', 'product.categ.tax.mixin'] _name = 'product.template' - @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'