From 80c67aa26fa6c888c1ced2a6b445566fc439c112 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Tue, 4 Feb 2020 13:35:34 +0000 Subject: [PATCH] [FIX] account: outstanding credit widget should be displayed in state in_payment closes odoo/odoo#44595 Signed-off-by: Cedric Snauwaert (csn) --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index e4866d516a0..9a768a3f528 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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'))