Skip to content

Commit

Permalink
Use correct condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mdietrichc2c committed Jun 9, 2016
1 parent 0eab6ba commit 4842cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_payment_term_interest/model/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_interest_value(self):
if not any(line.interest_rate for line in term.line_ids):
return 0.
for line in [line for line in self.order_line
if not line.interest_line]:
if not line == self._get_interest_line()]:
price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
taxes = line.tax_id.compute_all(price,
line.product_uom_qty,
Expand Down

0 comments on commit 4842cd4

Please sign in to comment.