Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Dear All,

Good Day to you.

Could you please kindly instruct on how to restrict the invoice access for the salesperson exclusively for their own invoices in Odoo V15 & V16? Instructions with screenshots are highly appreciated.


Thanks & Best Regards,

Tharindu

Awatar
Odrzuć
Najlepsza odpowiedź

There's already a record rule for the access group  “Sales / User: Own Documents Only” that limits them to their own sales invoice and credit notes:

[('move_id.move_type', 'in', ('out_invoice', 'out_refund')), '|', ('move_id.invoice_user_id', '=', user.id ), ('move_id.invoice_user_id', '=', False)]

Do you want to apply that to the “ Sales / User: All Documents ” group and only allow the sales administrator group to have access to all invoices (along with accounting users)?

That can be done by editing the Record Rule:

Change this to the Sales All documents 


Then change the other Record Rule in the pair to the Sales Admin:


Or maybe you need to remove sales users access to the accounting app?

More about Record Rules

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Thairndu,

For this one, you need to create your custom record rule based on your requirements.

['|',('inovice_user_id','=',user.id),('inovice_user_id','=',False)] 


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 24
1955
1
mar 24
1703
3
sie 25
2631
1
maj 25
2653
1
kwi 25
3639