Skip to Content
मेन्यू
This question has been flagged
2 Replies
2485 Views

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
Discard
Best Answer

following

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
2
जून 24
3258
2
अग॰ 23
2901
3
अग॰ 23
6392
1
दिस॰ 20
7443
1
मई 20
5999