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

I created a new custom model and I would like my act_windows to filter the information to be displayed by a domain, I have used these domain configurations:


[('company_id','=','env.user.company_id')]
or

[('company_id','=',env.user.company_id)]

or

[('company_id','=',env.user.company_id.id)]

or
[('compania_id','=','env.user.company_id.id')]


This does not work, because even though the id of my company_id field is equal to that of the user.company_id, the data is not displayed 

I am using odoo v16, is there something i am doing wrong



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

Hi,


Please check this post: https://www.odoo.com/forum/help-1/actions-with-domain-by-user-s-company-127485

Hope this will help you

Thank you


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
2541
2
thg 7 22
3596
2
thg 5 18
9795
2
thg 7 17
6720
5
thg 7 15
6034