تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
10242 أدوات العرض

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?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

Hello Anti,

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 24
3886
1
يناير 22
5693
0
يوليو 19
2981
0
يوليو 15
4536
naked domain set up تم الحل
3
يوليو 25
4292