Skip to content
Snippets Groups Projects
Commit 8f61715e authored by Eteil Djoumatchoua (etdj)'s avatar Eteil Djoumatchoua (etdj)
Browse files

[FIX] account_edi: Cannot cancel invoice even with appropriate access


Issue: When a user create -> confirm and then set the invoice to draft, Another user even
with right access (in the case Billing right on the accounting access) cannot cancel it

Steps to reproduce the bug:
1) Login with admin user having administration rights set as ‘setting’.
2) Inside Customer Invoices Journal Electronic Data Interchange -> Electronic invoicing -> Set/Enable to ‘Factur-X (FR)’
3) Create an invoice ( Ex. INV/2022/00001) with admin user -> Confirm -> Reset to draft.
4) Login with the billing user (Accounting rights set to ‘Only billing rights’)
5) invoicing -> Open Invoice ( Ex. INV/2022/00001) -> Try Cancel invoice ( Ex. INV/2022/00001) without confirming it.
6) Access Error will be reproduced.
7) Go to Customer Invoices Journal -> Electronic Data Interchange -> Electronic Invoicing -> Uncheck ‘Factur-X (FR)’ -> Save.
8) Repeat above mentioned steps again -> No Access error came this time.

Solution: Give the right access to unlink an attachment from set to draft invoice.

opw-2925207

closes odoo/odoo#96945

Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
parent fd059bce
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment