Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5035 Visualizzazioni

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



Avatar
Abbandona
Risposta migliore

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


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 24
2705
2
lug 22
3764
2
mag 18
9932
2
lug 17
6866
5
lug 15
6122