<?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_request_form">
            <field name="name">Quotations</field>
            <field name="res_model">purchase.request.quotation</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('lines.request', '=', Eval('active_id')), ('lines.request', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword"
                id="act_open_purchase_request_quotation_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">purchase.request,-1</field>
            <field name="action" ref="act_purchase_request_form"/>
        </record>
        <record model="ir.action-res.group"
            id="act_purchase_request_form-group_purchase_request">
            <field name="action" ref="act_purchase_request_form"/>
            <field name="group" ref="purchase_request.group_purchase_request"/>
        </record>

        <record model="ir.action.act_window.domain" id="act_purchase_request_form_domain_quotation">
            <field name="name">Quotation</field>
            <field name="sequence" eval="20"/>
            <field name="domain" eval="[('state', '=', 'quotation')]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="purchase_request.act_purchase_request_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_purchase_request_form_domain_received">
            <field name="name">Received</field>
            <field name="sequence" eval="30"/>
            <field name="domain" eval="[('state', '=', 'received')]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="purchase_request.act_purchase_request_form"/>
        </record>
    </data>
</tryton>
