<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

		<record id="view_create_payment_order" model="ir.ui.view">
            <field name="name">payment.order.create.form</field>
            <field name="model">payment.order.create</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
			<form string="Search Payment lines">
			    <group col="4" colspan="6">
					<field name="duedate" />
				</group>
				<separator colspan="4"/>
			    <group col="2" colspan="4">
            		<button special="cancel"  string="Cancel" icon='gtk-cancel'/>
					<button name="search_entries" string="Search" colspan="1" type="object" icon="gtk-execute"/>
				</group>
			</form>
            </field>
        </record>

		<record id="view_create_payment_order_lines" model="ir.ui.view">
            <field name="name">payment.order.create.form</field>
            <field name="model">payment.order.create</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
			<form string="Search Payment lines">
			    <group col="4" colspan="6">
				</group>
				<separator colspan="4"/>
			    <group col="2" colspan="4">
            		<button special="cancel"  string="Cancel" icon='gtk-cancel'/>
					<button name="create_payment" string="_Add to payment order" colspan="1" type="object" icon="gtk-execute"/>
				</group>
			</form>
            </field>
        </record>

        <record id="action_create_payment_order" model="ir.actions.act_window">
            <field name="name">Populate Payment</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">payment.order.create</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

	</data>
</openerp>