mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: folio sale line compute invoice state filter
This commit is contained in:
@@ -541,7 +541,7 @@ class FolioSaleLine(models.Model):
|
||||
Note: Draft invoice are ignored on purpose, the 'to invoice' amount should
|
||||
come only from the folio lines.
|
||||
"""
|
||||
for line in self.filtered("invoice_lines"):
|
||||
for line in self:
|
||||
amount_to_invoice = 0.0
|
||||
if line.state != "draft":
|
||||
# Note: do not use price_subtotal field as it returns
|
||||
|
||||
Reference in New Issue
Block a user