Files
tryton/sale.xml
T
Cédric Krier 5d2e004277 Use active_ids in form_relate
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
2014-02-11 18:10:59 +01:00

26 lines
1.0 KiB
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.ui.view" id="sale_view_form">
<field name="model">sale.sale</field>
<field name="inherit" ref="sale.sale_view_form"/>
<field name="name">sale_form</field>
</record>
<record model="ir.action.act_window" id="act_sale_drop_shipment_form">
<field name="name">Drop Shipments</field>
<field name="res_model">stock.shipment.drop</field>
<field name="domain">[('moves.sale', 'in', Eval('active_ids'))]</field>
</record>
<record model="ir.action.keyword"
id="act_open_sale_drop_shipment_keyword1">
<field name="keyword">form_relate</field>
<field name="model">sale.sale,-1</field>
<field name="action" ref="act_sale_drop_shipment_form"/>
</record>
</data>
</tryton>