From eb2386d0cdf0aa0e39b8d225c8221e9ca23f594e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 19 Feb 2023 23:46:33 +0100 Subject: [PATCH] product_category_tax: code cleanup --- product_category_tax/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product_category_tax/product.py b/product_category_tax/product.py index 732b5b5..f34fcba 100644 --- a/product_category_tax/product.py +++ b/product_category_tax/product.py @@ -64,7 +64,7 @@ class ProductTemplate(models.Model): "The sale taxes configured on the product '%s' " "are not the same as the sale taxes configured " "on it's related internal category '%s'.") - % (self.name, self.categ_id.name_get()[0][1])) + % (self.name, self.categ_id.display_name)) if ( self.categ_id.purchase_tax_ids.ids != self.supplier_taxes_id.ids): @@ -72,7 +72,7 @@ class ProductTemplate(models.Model): "The purchase taxes configured on the product '%s' " "are not the same as the purchase taxes configured " "on it's related internal category '%s'.") - % (self.name, self.categ_id.name_get()[0][1])) + % (self.name, self.categ_id.display_name)) class ProductProduct(models.Model):