Only active_mode, active_id and active_ids can be used on relate domain because it is the only values which could be sur to be present. Also it always try to use active_ids over active_id to give more possibilities to the user. issue2474 review3261002
25 lines
999 B
XML
25 lines
999 B
XML
<?xml version="1.0"?>
|
|
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
this repository contains the full copyright notices and license terms. -->
|
|
<tryton>
|
|
<data>
|
|
<record model="ir.action.act_window" id="act_purchase_form2">
|
|
<field name="name">Purchases</field>
|
|
<field name="res_model">purchase.purchase</field>
|
|
<field name="domain">[('party', 'in', Eval('active_ids'))]</field>
|
|
</record>
|
|
<record model="ir.action.keyword"
|
|
id="act_open_purchase_keyword1">
|
|
<field name="keyword">form_relate</field>
|
|
<field name="model">party.party,-1</field>
|
|
<field name="action" ref="act_purchase_form2"/>
|
|
</record>
|
|
<record model="ir.action-res.group"
|
|
id="act_purchase_form2-group_purchase">
|
|
<field name="action" ref="act_purchase_form2"/>
|
|
<field name="group" ref="group_purchase"/>
|
|
</record>
|
|
|
|
</data>
|
|
</tryton>
|