From dc03f1070cd0a1be2dac93e1fdee87dc3685e178 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/README.rst | 2 +- account_payment_order/__manifest__.py | 2 +- account_payment_order/static/description/index.html | 2 +- account_payment_order/views/account_invoice_view.xml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/account_payment_order/README.rst b/account_payment_order/README.rst index 161aed15c..b3ae85be2 100644 --- a/account_payment_order/README.rst +++ b/account_payment_order/README.rst @@ -7,7 +7,7 @@ Account Payment Order !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:223362c71dd6686228efce9e2dfdc1e2acf82af684893783717d2c2d2e171caf + !! source digest: sha256:27a37f42dfe71cb996e2ff53d039ebc2682b60c582aabe1a7e76aac25ddf3679 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/account_payment_order/__manifest__.py b/account_payment_order/__manifest__.py index 8857d8be5..fd2e197a8 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -9,7 +9,7 @@ { "name": "Account Payment Order", - "version": "16.0.1.5.0", + "version": "16.0.1.6.0", "license": "AGPL-3", "author": "ACSONE SA/NV, " "Therp BV, " diff --git a/account_payment_order/static/description/index.html b/account_payment_order/static/description/index.html index 06f60fc5f..1aa9a4488 100644 --- a/account_payment_order/static/description/index.html +++ b/account_payment_order/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:223362c71dd6686228efce9e2dfdc1e2acf82af684893783717d2c2d2e171caf +!! source digest: sha256:27a37f42dfe71cb996e2ff53d039ebc2682b60c582aabe1a7e76aac25ddf3679 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runboat

This module adds support for payment orders and debit orders.

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" >