Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
10277 Vues

My plan is to give our customers a user to our Odoo and only show it the customer profile page, it is linked to(res.users has Related Partner(partner_id)). I thought to use a domain and uid(that is the user that is logged in right now? So I have tried things like 

[['id','=',uid.partner_id]] 
[['name','=',uid.name]]
[['name','ilike',uid]]

The last one only shows the companies that have user's id in their name (for Admin it's 1) for the rest it's (object has no attribute 'partner_id'). Any ideas?

Avatar
Ignorer
Auteur Meilleure réponse

[('user_ids.id', '=', uid)]
This is the domain I was looking for. Thanks to Kalpana though

Avatar
Ignorer
Meilleure réponse

Hello Anti,

Apply a record rule [('user_ids.id', '=', user.id)] globally for Partner.Hope it works for you.

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mai 24
3907
1
janv. 22
5722
0
juil. 19
3004
0
juil. 15
4551
3
juil. 25
4372