From 1d3879b6df7bbc74e078e1fb1fb6142e3186f660 Mon Sep 17 00:00:00 2001 From: alt-odoo Date: Wed, 22 Jun 2022 06:50:48 +0000 Subject: [PATCH] [FIX] account: allow billing user to register payment difference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, the register payment button in the invoice form view is accessible to any Accounting/Billing user. But in the payment register wizard, the payment difference related fields are only visible for an Accounting/Auditor user. This does not make sense as the auditor access level is a read-only role, and there is no dependency between auditor and billing rights. We should remove the group (as it is already restricted in the access rights of the model) in the wizard to allow billing users to use the functionality without the need for accountant access rights. closes odoo/odoo#94380 X-original-commit: 488bda480a38f9c09496f770be8a6f540c541044 Signed-off-by: William André (wan) Signed-off-by: Alex Thuyls (alt) --- addons/account/wizard/account_payment_register_views.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/wizard/account_payment_register_views.xml b/addons/account/wizard/account_payment_register_views.xml index 0d1d5dfd4db..c59bc8bed74 100644 --- a/addons/account/wizard/account_payment_register_views.xml +++ b/addons/account/wizard/account_payment_register_views.xml @@ -54,8 +54,7 @@ attrs="{'invisible': ['|', ('can_edit_wizard', '=', False), '&', ('can_group_payments', '=', True), ('group_payment', '=', False)]}"/> + attrs="{'invisible': ['|', ('payment_difference', '=', 0.0), '|', ('can_edit_wizard', '=', False), '&', ('can_group_payments', '=', True), ('group_payment', '=', False)]}">