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

Hello,


How can I implement a rule for a user id to see only the records that he is assigned to but also the records that are in new state but not assigned to anyone.


My code so far will :



Own complaints

['|', ('state', 'in', ['new']), ('technician', '=', user.id)]

Odoo 13 CE.


Thank you !

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

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Ảnh đại diện
Huỷ bỏ
Tác giả

I tried you way before but the conditions were not in the correct order and did not work.

Now it works like a charm. Thank you !

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 9 20
12881
2
thg 3 15
7611
0
thg 3 15
4043
1
thg 3 15
5361
0
thg 3 15
4261