Skip to content
Snippets Groups Projects
Commit 07ce21e7 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Extend lines to invoiced ones

parent 2509fded
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class SaleOrder(models.Model):
Compute the amount (untaxed) that remains to be invoiced from sale order
"""
for order in self:
line_to_invoice = [line for line in order.order_line if line.invoice_status == 'to invoice']
line_to_invoice = [line for line in order.order_line if line.invoice_status == 'to invoice' or line.invoice_status == 'invoiced']
untaxed_amount_to_invoice = order.amount_untaxed
for line in line_to_invoice:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment