From 6d699ace25019e56bd70425bae96c019207e71de Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Tue, 10 Dec 2019 13:31:31 +0000 Subject: [PATCH] [FIX] payment: Display the "register payment" button in receipts The button attrs has been well fixed in the 'account' module but not in 'payment'. closes odoo/odoo#41657 X-original-commit: b5b7131c97aff987ef365dfaeefcbb2dc3bbdf68 Signed-off-by: Laurent Smet --- addons/payment/views/account_invoice_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment/views/account_invoice_views.xml b/addons/payment/views/account_invoice_views.xml index 907af3b5bdc..7a224ce2e92 100644 --- a/addons/payment/views/account_invoice_views.xml +++ b/addons/payment/views/account_invoice_views.xml @@ -10,7 +10,7 @@ The user must capture/void the authorized transactions before registering a new payment. --> - {'invisible': ['|', '|', '|', ('state', '!=', 'posted'), ('invoice_payment_state', '!=', 'not_paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('authorized_transaction_ids', '!=', [])]} + {'invisible': ['|', '|', '|', ('state', '!=', 'posted'), ('invoice_payment_state', '!=', 'not_paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt')), ('authorized_transaction_ids', '!=', [])]}