コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2522 ビュー

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)]
アバター
破棄
関連投稿 返信 ビュー 活動
2
6月 24
3306
2
8月 23
2951
3
8月 23
6451
1
12月 20
7548
1
5月 20
6033