I have added 2 different menuitems (defined in the XML), both open the tree view of project.work and have the same domain in their ir.action.act_window
The issue I am facing is that if one of them is open, the other doesn’t work.
The way I am fixing this is by updating one of the domains with the no op condition because unless the domain are different, this issue persists.
I want to know if this an intentional behaviour, or an issue with the tryton client version I am using.
I ask this because I don’t see this when I use SAO.
I am using Tryton client version 5.0.35
and trytond version 5.0.33
For example, with this code, I can open only one of these windows at a time
<record model="ir.action.act_window" id="act_task_1">
<field name="name">Tasks 1</field>
<field name="res_model">project.work</field>
<field name="domain" eval="[
('type', '=', 'task'),
[('employee', '=', Eval('context', {}).get('employee', None))]
]" pyson="1" />
<field name="search_value"></field>
</record>
<record model="ir.action.act_window" id="act_task_2">
<field name="name">Tasks 2</field>
<field name="res_model">project.work</field>
<field name="domain" eval="[
('type', '=', 'task'),
[('employee', '=', Eval('context', {}).get('employee', None))]
]" pyson="1" />
<field name="search_value"></field>
</record>
I am able to fix it by changing one of these with a no op domain condition
<record model="ir.action.act_window" id="act_task_1">
<field name="name">Tasks 1</field>
<field name="res_model">project.work</field>
<field name="domain" eval="[
('type', '=', 'task'),
[('employee', '=', Eval('context', {}).get('employee', None))],
['id', '!=', '0']
]" pyson="1" />
<field name="search_value"></field>
</record>
<record model="ir.action.act_window" id="act_task_2">
<field name="name">Tasks 2</field>
<field name="res_model">project.work</field>
<field name="domain" eval="[
('type', '=', 'task'),
[('employee', '=', Eval('context', {}).get('employee', None))]
]" pyson="1" />
<field name="search_value"></field>
</record>