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

I am running Odoo17 Enterprise on-premise (not on .sh).

I want to restrict access for portal users to only see their own records and not be able to see the records of other users that are connected to their company (similar to how it works in contacts in the backend). I assume that this would be done in record rules?

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

Hi 

yes that is done by record rules but needs intensive and clean testing

warm regards

Daniel

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

Anyone know where to start on the syntax for this?

I have changed Portal Personal Quotations/Sales Orders rule from the preset rule (for some reason I cannot post that because i can't seem to post more than one rule) to:


[('message_partner_ids', 'in', [user.partner_id.id])]


It seems to work but It would be good to get some feedback on this to make sure that I'm not making any rookie mistakes that may lead to a disaster.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 24
1453
1
thg 12 24
1185
1
thg 11 24
1005
0
thg 11 24
15
2
thg 10 24
33