<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
  		<record id="view_auction_pay_buy" model="ir.ui.view">
            <field name="name">auction.pay.buy.form</field>
            <field name="model">auction.pay.buy</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Pay objects">
                  <group colspan="4" col="4" >
                     <separator string="Pay Objects" colspan="4" />
			         <field name="buyer_id"/>
			         <field name="total"/> 
			   		 <newline/>
                  </group>
                  <separator string="Payment Lines" colspan="4"/>
                  <group colspan="4" col="4">
                       <label string="Line1"/>
                       <field name="amount"/>
                       <field name="statement_id1" domain="[('state','=','draft')]"/>    
                  </group> 
                  <group colspan="4" col="4">
                       <label string="Line2"/>
                       <field name="amount2"/>
                       <field name="statement_id2" domain="[('state','=','draft')]"/>
                  </group>
                  <group colspan="4" col="4">
                    <label string="Line3" />
                    <field name="amount3"/>
                    <field name="statement_id3"  domain="[('state','=','draft')]"/>
                  </group>
                  <separator string="" colspan="4" />
                  <group colspan="2" col="2"/>
                  <group colspan="2" col="2">
                   	<button icon="gtk-close" special="cancel" string="Close"/>
                   	<button icon="gtk-yes"  string="Pay" name="pay_and_reconcile" type="object"/>
                  </group>
               </form>
            </field>
  		</record>
       <act_window name="Pay objects of the buyer"		    
		    res_model="auction.pay.buy"
		    src_model="auction.lots"
		    view_mode="form"
		    target="new"        
            key2="client_action_multi"    
		    id="action_auction_pay_buy"/>   
    </data>
</openerp>
