Use product's account category instead of old 'category'.
This commit is contained in:
parent
8f67d45ed4
commit
4a79e0e981
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
3
sale.py
3
sale.py
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue