Skip to content

Commit

Permalink
[FIX]13.0 sale_order_type_invoice_policy: credit notes
Browse files Browse the repository at this point in the history
X-original-commit: ba7d19e
  • Loading branch information
JrAdhoc committed Jul 28, 2022
1 parent 3fd02e2 commit ebae5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_type_invoice_policy/models/stock_picking.py
Expand Up @@ -43,7 +43,7 @@ def _check_sale_paid(self):
precision = self.env['decimal.precision'].precision_get(
'Product Unit of Measure')
invoice_status = self.sale_id.mapped(
'order_line.invoice_lines.move_id.invoice_payment_state')
'order_line.invoice_lines.move_id').filtered(lambda x: x.type == 'out_invoice').mapped('invoice_payment_state')
if (set(invoice_status) - set(['paid'])) or any(
not float_is_zero(line.qty_to_invoice, precision_digits=precision)
for line in self.sale_id.order_line):
Expand Down

0 comments on commit ebae5fa

Please sign in to comment.