diff --git a/modules/account_payment/payment.py b/modules/account_payment/payment.py
index 57a6725cb4..0b38a427f3 100644
--- a/modules/account_payment/payment.py
+++ b/modules/account_payment/payment.py
@@ -527,6 +527,15 @@ class Payment(Workflow, ModelSQL, ModelView):
field_name = 'process_method'
return Journal.fields_get([field_name])[field_name]['selection']
+ @classmethod
+ def view_attributes(cls):
+ context = Transaction().context
+ attributes = super().view_attributes()
+ if context.get('kind') == 'receivable':
+ attributes.append(
+ ('/tree//button[@name="approve"]', 'tree_invisible', True))
+ return attributes
+
@classmethod
def copy(cls, payments, default=None):
if default is None:
diff --git a/modules/account_payment/payment.xml b/modules/account_payment/payment.xml
index d0975d0fac..45d161e90b 100644
--- a/modules/account_payment/payment.xml
+++ b/modules/account_payment/payment.xml
@@ -242,58 +242,113 @@ this repository contains the full copyright notices and license terms. -->
-
+
+
+ Payable Payments
+ account.payment
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Draft
-
+
-
+
To Approve
-
+
-
+
-
+
To Process
-
+
-
+
-
+
Processing
-
+
-
- Succeeded
-
-
-
-
-
- Failed
-
-
-
-
-
+
All
-
+
+ id="menu_payment_form_payable"/>
+
+
+ Receivable Payments
+ account.payment
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Draft
+
+
+
+
+
+
+ To Process
+
+
+
+
+
+
+ Processing
+
+
+
+
+
+
+ All
+
+
+
+
+
+
Payments