account-invoicing icon indicating copy to clipboard operation
account-invoicing copied to clipboard

[FIX] Stock_Picking_invoicing: ACL if user doesnt have account group.

Open joshkreud opened this issue 2 years ago • 1 comments

PR Content

This fixes an ACL error when trying to open a picking with attached invoices, when the user doesnt have rights to read the invoices.

Apparently Odoo still tries to read the field, even though the parent page already had groups=account.group_account_invoice.

Trivia

Yesterday I thought this issue lies in upstream in stock_picking_invoice_link. But upon further testing, I realized, that the read call that prompts the ACL error, is issued by the invoice_ids subtree in this module.

joshkreud avatar Dec 22 '22 11:12 joshkreud