Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2556 Переглядів

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  

Аватар
Відмінити
Найкраща відповідь

following

Аватар
Відмінити
Найкраща відповідь

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)]
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
черв. 24
3336
2
серп. 23
2988
3
серп. 23
6485
1
груд. 20
7596
1
трав. 20
6045