I am trying to create custom filter to show the intervention of the current user.
<record model="ir.ui.view" id="module.interventionVs">
<field name="model">module.intervention</field>
<field name="arch" type="xml">
<search>
<filter name="my_intervention" string="My intervention" domain="[('partner', '=', user.partner_id)]"/>
</search>
</field>
</record>
but I didn't understand why I can access to user form the search filter domain.
I tryed "uid.partner_id" or "context.get('user').partner_id" but that didn't work.
How I can access to the current record of res.user to get the partner_id field ?