Skip to content
Extraits de code Groupes Projets
Valider 07ce21e7 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

Extend lines to invoiced ones

parent 2509fded
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -17,7 +17,7 @@ class SaleOrder(models.Model): ...@@ -17,7 +17,7 @@ class SaleOrder(models.Model):
Compute the amount (untaxed) that remains to be invoiced from sale order Compute the amount (untaxed) that remains to be invoiced from sale order
""" """
for order in self: 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 untaxed_amount_to_invoice = order.amount_untaxed
for line in line_to_invoice: for line in line_to_invoice:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter