Change amount_total to amount_untaxed

develop
Andreas Osim 2018-06-20 13:49:49 +02:00
parent 762606d120
commit 449d1ded8c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class SaleOrder(models.Model):
if order.discount_type == 'fixed':
amount = order.discount_amount
if order.discount_type == 'percentage':
amount = (order.amount_total * order.discount_percentage)/100
amount = (order.amount_untaxed * order.discount_percentage)/100
# Create the Sale line
Line.create({