Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3006 Visualizzazioni

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
Abbandona
Risposta migliore

following

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
set 25
4045
2
ago 23
3406
3
ago 23
6919
1
dic 20
8063
1
mag 20
6319