<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
 
        <record id="purchase_waiting" model="ir.actions.act_window">
            <field name="name">Purchase Orders Waiting Approval</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">purchase.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('date_order','&gt;',time.strftime('%Y-01-01 00:00:00')),('date_order','&lt;',time.strftime('%Y-12-31 23:59:59')), ('state','in',('wait','confirmed'))]</field>
        </record>

        <record id="board_purchase_form2" model="ir.ui.view">
            <field name="name">board.purchase.form</field>
            <field name="model">board.board</field>
            <field name="inherit_id" ref="purchase.board_purchase_form"/>
            <field name="arch" type="xml">
                <xpath expr="/form/board/column/action[@string='Request for Quotations']" position="after">
                    <action name="%(purchase_waiting)d" string="Purchase Orders Waiting Approval"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
