From 688b3f5b32a87a418d4a59a33e7c684d42707973 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 14 Nov 2023 13:10:43 +0100 Subject: [PATCH] [FIX] account_payment_order: Restrict payment lines button to payment group If not, you get an access error when accessing the invoice if you don't have such permission: ``` You are not allowed to access 'Payment Lines' (account.payment.line) records. This operation is allowed for the following groups: - Extra Rights/Accounting / Payments Contact your administrator to request access if necessary ``` TT45952 --- account_payment_order/views/account_invoice_view.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/account_payment_order/views/account_invoice_view.xml b/account_payment_order/views/account_invoice_view.xml index 111871238..a9ceaf6ea 100644 --- a/account_payment_order/views/account_invoice_view.xml +++ b/account_payment_order/views/account_invoice_view.xml @@ -46,6 +46,7 @@ attrs="{'invisible': [('payment_line_count', '=', 0)]}" icon="fa-bars" help="Payment Order Lines" + groups="account_payment_order.group_account_payment" >