Skip to content

Commit

Permalink
[FIX] sale_margin_tax: compute invoiced quantity on sale lines with m…
Browse files Browse the repository at this point in the history
…argin
  • Loading branch information
len-foss committed Jun 4, 2024
1 parent a39f40c commit 76768c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sale_margin_tax/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ def _prepare_invoice_margin_base_line(self, **optional_values):
}
vals.update(base_values)
return vals

def _get_invoice_lines(self):
res = super()._get_invoice_lines()
return res.filtered(lambda l: not l.is_margin_line)

0 comments on commit 76768c6

Please sign in to comment.