This commit is contained in:
jmartin 2016-04-26 13:37:54 +02:00
parent c72bd58db5
commit 28ec36d845
1 changed files with 2 additions and 2 deletions

View File

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