Use product's account category instead of old 'category'.

This commit is contained in:
Albert Cervera i Areny 2021-09-24 11:30:18 +02:00
parent 8f67d45ed4
commit 4a79e0e981
3 changed files with 7 additions and 8 deletions

View File

@ -90,9 +90,9 @@ msgctxt "field:sale.rule.action,sequence:"
msgid "Sequence"
msgstr "Seqüència"
msgctxt "field:sale.rule.condition,category:"
msgid "Product Category"
msgstr "Categoria de producte"
msgctxt "field:sale.rule.condition,account_category:"
msgid "Product Account Category"
msgstr "Categoria comptable del producte"
msgctxt "field:sale.rule.condition,condition:"
msgid "Condition"

View File

@ -90,9 +90,9 @@ msgctxt "field:sale.rule.action,sequence:"
msgid "Sequence"
msgstr "Secuencia"
msgctxt "field:sale.rule.condition,category:"
msgid "Product Category"
msgstr "Categoría de producto"
msgctxt "field:sale.rule.condition,account_category:"
msgid "Product Account Category"
msgstr "Categoría contable de producto"
msgctxt "field:sale.rule.condition,condition:"
msgid "Condition"

View File

@ -15,7 +15,7 @@ CRITERIA = [
('total_amount', 'Total Amount'),
('total_products', 'Total Products'),
('product', 'Total Product Quantity'),
('category', 'Total Product Category Quantity'),
('account_category', 'Product Account Category'),
]
COMPARATORS = [
('equal', 'equals'),
@ -299,7 +299,6 @@ class SaleRuleAction(ModelSQL, ModelView):
def apply(self, sale):
return getattr(self, 'apply_%s' % self.action_type)(sale)
class SaleRuleCondition(ModelSQL, ModelView):
'Sale Rule Condition'
__name__ = 'sale.rule.condition'