diff --git a/sale_margin_tax/models/sale_order_line.py b/sale_margin_tax/models/sale_order_line.py index 1d95db9a..4d79286f 100644 --- a/sale_margin_tax/models/sale_order_line.py +++ b/sale_margin_tax/models/sale_order_line.py @@ -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)