[FIX] agreement_legal_sale - ignore sale order lines with display_type

This commit is contained in:
Jérémy Didderen
2022-06-12 11:44:12 +02:00
parent b5dc2af373
commit 04c6c65a93

View File

@@ -27,7 +27,7 @@ class SaleOrder(models.Model):
or False,
}
)
for line in order.order_line:
for line in order.order_line.filtered(lambda l: not l.display_type):
# Create agreement line
self.env["agreement.line"].create(
self._get_agreement_line_vals(line)