My access rule is like mentioned below. I hope its correctly written.
<record id="supervisor_rule" model="ir.rule">
<field name="name">Supervisor</field>
<field name="model_id" ref="supervior_module.model_supervisor_manager"/>
<field name="domain_force">[('user_id','in',[user.id])]</field>
<field name="groups" eval="[(4, ref('supervior_module.group_site_supervisor'))]"/>
<field eval="1" name="perm_unlink"/>
<field eval="1" name="perm_write"/>
<field eval="1" name="perm_read"/>
<field eval="1" name="perm_create"/>
</record>
But issues is, when I run my code it says. Invalid field 'user_id' in leaf.