Skip to Content
Menú
This question has been flagged
2 Respostes
2261 Vistes

We are trying to restrict user access to records (vendor bills and bill payments), that they did not create.

The current rules allow access to view all bills and bill payments in the accounting app, but we would like the user to only see the bills they entered.


Thanks  

Avatar
Descartar
Best Answer

following

Avatar
Descartar
Best Answer

Go to Settings > Technical > Security > Record Rules.

Create two new record rules, one for vendor bills and one for bill payments.

  • For Vendor Bills:
    • Model: account.move
    • Apply following domain to restrict access to the bills created by the user

  • [('move_type', '=', 'in_invoice'), ('create_uid', '=', user.id)]
    
  • Action: Read

For Bill Payments:

  • Model: account.payment
  • Apply the following domain to restrict access to bill payments created by the user:

[('payment_type', '=', 'inbound'), ('create_uid', '=', user.id)]
Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 24
2938
2
d’ag. 23
2686
3
d’ag. 23
6090
1
de des. 20
7048
1
de maig 20
5842