Skip to content
Snippets Groups Projects
Commit b826c96a authored by david's avatar david
Browse files

[FIX] delivery: avoid retrospective computation

If we're to change the invoice policy of a product we'd provoke a
chained computation of every sale line and sale order containing such
product. This change goes along with the policy of applying such changes
only to future orders, as stated here: https://github.com/odoo/odoo/pull/61135



closes odoo/odoo#64506

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent 995f55d3
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ class SaleOrder(models.Model):
return sol
@api.depends('state', 'order_line.invoice_status', 'order_line.invoice_lines',
'order_line.is_delivery', 'order_line.is_downpayment', 'order_line.product_id.invoice_policy')
'order_line.is_delivery', 'order_line.is_downpayment')
def _get_invoiced(self):
super(SaleOrder, self)._get_invoiced()
for order in self:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment