[FIX] account: outstanding credit widget should be displayed in state in_payment
closes odoo/odoo#44595 Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
This commit is contained in:
@@ -1196,7 +1196,7 @@ class AccountMove(models.Model):
|
||||
move.invoice_outstanding_credits_debits_widget = json.dumps(False)
|
||||
move.invoice_has_outstanding = False
|
||||
|
||||
if move.state != 'posted' or move.payment_state != 'not_paid' or not move.is_invoice(include_receipts=True):
|
||||
if move.state != 'posted' or move.payment_state not in ('not_paid', 'partial') or not move.is_invoice(include_receipts=True):
|
||||
continue
|
||||
pay_term_line_ids = move.line_ids.filtered(lambda line: line.account_id.user_type_id.type in ('receivable', 'payable'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user