Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 24
1941
1
bře 24
1694
3
srp 25
2610
1
kvě 25
2644
1
dub 25
3633