<?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_production_form">
            <field name="name">Productions</field>
            <field name="res_model">production</field>
            <field
                name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('origin.sale.id', '=', Eval('active_id'), 'sale.line'), ('origin.sale.id', 'in', Eval('active_ids'), 'sale.line'))]"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword" id="act_production_form_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">sale.sale,-1</field>
            <field name="action" ref="act_production_form"/>
        </record>
    </data>
</tryton>
