Skip to content

Commit

Permalink
Merge PR #1248 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 7, 2024
2 parents 60f418c + 66c14aa commit d223694
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def get_quantity_invoiced(self, invoice_lines):
date_end = self.env.context.get("moves_date_end")
if date_start and date_end:
moves = moves.filtered(
lambda ml: ml.date_done >= date_start and ml.date_done <= date_end
lambda ml: ml.state == "done"
and (ml.date_done >= date_start and ml.date_done <= date_end)
)
total_qty = moves.get_total_devolution_moves()
if qty_invoiced != total_qty:
Expand Down

0 comments on commit d223694

Please sign in to comment.