product_category_tax: code cleanup

This commit is contained in:
Alexis de Lattre
2023-02-19 23:46:33 +01:00
parent 4a9bf263e3
commit eb2386d0cd

View File

@@ -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):