Skip to Content
Menu
This question has been flagged
1 Reply
2252 Views


I want to see all event/meeting where "user_id==uid" and "uid.name == partner_ids"?

I try to create a new filter :

domain=[|,('user_id','=',uid),('partner_ids','ilike',uid.name)]

But uid.name is not a variable. I try "uid.name", uid.name , "user_id.name" , user_id.name and domain="[('partner_ids','ilike',self.pool.get('res.users').browse(cr, uid, uid, context=context).partner_id.name)]" but no one work.

I think I'm misunderstanding the right way to use domain field, not just in search view.

How can I use a var that is not a field of model but from database like res_users.name or res_users.partner_id.name ?


it's a many2many field. it point to crm_meeting_partner_rel table. If I set ('partner_ids','ilike','james') I've the right filter.


Avatar
Discard
Best Answer

It will helpful for you: https://www.odoo.com/forum/help-1/question/get-current-user-id-no-username-131045


<field name="logged_user"/>


logged_user is used to get logged in user.

Thanks and regards

Haresh Kansara

Avatar
Discard