diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 152ad8ba73f..6b50efb7de6 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -739,12 +739,12 @@
+ invisible="move_type not in ('out_invoice', 'out_receipt') or not invoice_has_outstanding or payment_state not in ('not_paid', 'partial')">
You have
outstanding credits for this customer. You can allocate them to mark this invoice as paid.
+ invisible="move_type not in ('in_invoice', 'in_receipt') or not invoice_has_outstanding or payment_state not in ('not_paid', 'partial')">
You have
outstanding debits for this vendor. You can allocate them to mark this bill as paid.
+ invisible="state != 'posted'"/>