Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2121 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
152
0
thg 8 25
6
1
thg 8 25
280
2
thg 8 25
438
2
thg 8 25
1231