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

Hello Community

how to create a domain to filter current users ?

thanks in advance

Avatar
Discard
Best Answer

use partner_id.user_id like:

 <field name="domain">[('partner_id.user_id', '=', uid)]</field>

OR

<field name="domain">[('partner_id.user_id','=',user.id)]</field>

i am assuming that your model have   a m21:partner_id with res.partner

Avatar
Discard