Fix typo
This commit is contained in:
parent
c72bd58db5
commit
28ec36d845
4
sale.py
4
sale.py
|
@ -30,7 +30,7 @@ COMPARATORS = [
|
|||
]
|
||||
ACTION_TYPES = [
|
||||
('cart_discount_percentage', 'Discount % on Sub Total'),
|
||||
('cart_discoutn_fixed', 'Fixed amount on Sub Total'),
|
||||
('cart_discount_fixed', 'Fixed amount on Sub Total'),
|
||||
('stop_sale', 'Stop Sale'),
|
||||
('get_product_free', 'Get X Product Free'),
|
||||
]
|
||||
|
@ -282,7 +282,7 @@ class SaleRuleAction(ModelSQL, ModelView):
|
|||
line.amount = line.on_change_with_amount()
|
||||
return line
|
||||
|
||||
def apply_cart_discoutn_fixed(self, sale):
|
||||
def apply_cart_discount_fixed(self, sale):
|
||||
line = self.get_default_sale_line(sale)
|
||||
line.unit_price = -self.quantity
|
||||
line.amount = line.on_change_with_amount()
|
||||
|
|
Loading…
Reference in New Issue