Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4969 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mai 24
2609
2
juil. 22
3694
2
mai 18
9842
2
juil. 17
6804
5
juil. 15
6074