Hy,
I would like to filter datas with domain action and current company_id.
I tried many thinks without success :
<record id="action_tasks" model="ir.actions.act_window">
<field name="name">tasks</field>
<field name="res_model">project.task</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{}</field>
<field name="domain" >[('company_id','!=',context.get('company_id',False))]</field>
</record>
More generally how to create an action linked on a menu that is filtered on current company.
Is there any way to dynamically associate the menu to an action and return a filtered action_window?
Thanks
In another way to Filter record using Record Rule