diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 06aa18f20e6..9c12e64d71b 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -489,9 +489,9 @@
attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('invoice_payment_state', '!=', 'not_paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"
string="Register Payment"
groups="account.group_account_invoice"/>
-
+
+ attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund'))]}"/>