跳至内容
菜单
此问题已终结
2 回复
2056 查看

how can control access to specific documents, like Vendor Bills, based on the user's roles and access rights. To achieve your requirement of allowing the first accountant to see only bills and the second accountant to see only expenses?

形象
丢弃
最佳答案

Hi,

To control access to specific documents like Vendor Bills in Odoo based on user roles and access rights, you can utilize Odoo's security features, including access groups and record rules:


Go to Settings > Technical > Security > Record Rules.

Create new record rules.For vendor bills:

Model: account.move


Apply the following domain to restrict access to the bills created by the user

[('move_type', '=', 'in_invoice'), ('create_uid', '=', user.id)]

Action: Read


Hope it helps

形象
丢弃
编写者 最佳答案

i have 2 accounts i want the first account see the vendor bill and the second accountant just to see expenses can you help me with the rule 

形象
丢弃
编写者

thank you
when i apply this code work but when i add a group not work how to solve it?

相关帖文 回复 查看 活动
1
8月 25
232
0
8月 25
184
2
8月 25
180
2
8月 25
769
2
8月 25
498