Skip to content

Commit 8a05c25

Browse files
committed
[FIX] account: allow billing user to register payment difference
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#94375 X-original-commit: 488bda4 Signed-off-by: William André (wan) <[email protected]> Signed-off-by: Alex Thuyls (alt) <[email protected]>
1 parent 85a067b commit 8a05c25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/account/wizard/account_payment_register_views.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
attrs="{'invisible': ['|', ('can_edit_wizard', '=', False), '&amp;', ('can_group_payments', '=', True), ('group_payment', '=', False)]}"/>
5555
</group>
5656
<group name="group3"
57-
attrs="{'invisible': ['|', ('payment_difference', '=', 0.0), '|', ('can_edit_wizard', '=', False), '&amp;', ('can_group_payments', '=', True), ('group_payment', '=', False)]}"
58-
groups="account.group_account_readonly">
57+
attrs="{'invisible': ['|', ('payment_difference', '=', 0.0), '|', ('can_edit_wizard', '=', False), '&amp;', ('can_group_payments', '=', True), ('group_payment', '=', False)]}">
5958
<label for="payment_difference"/>
6059
<div>
6160
<field name="payment_difference"/>

0 commit comments

Comments
 (0)