From 28ec36d845f9640979c050d1eafd21548332368a Mon Sep 17 00:00:00 2001 From: jmartin Date: Tue, 26 Apr 2016 13:37:54 +0200 Subject: [PATCH] Fix typo --- sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sale.py b/sale.py index 69329ff..b54653f 100644 --- a/sale.py +++ b/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()