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

  	  <record id="view_unpaid_invoice_view" model="ir.ui.view">
            <field name="name">unpaid.invoice.view.form</field>
            <field name="model">membership.unpaid.invoice</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="List Unpaid Members">
                	<group colspan="4" >
                           <field name="product" domain="[('membership','=',True)]" widget="selection"/>
                    </group>
                    <group colspan="4" col="6">
                    	<button  icon="gtk-close" special="cancel" string="Close"/>
           				<button  icon="gtk-ok" string="Unpaid" name="invoice_membership" type="object"/>
                   </group>
               </form>
            </field>
  	  </record>

       <record id="action_unpaid_invoice_view" model="ir.actions.act_window">
           <field name="name">List Unpaid Members</field>
           <field name="res_model">membership.unpaid.invoice</field>
           <field name="view_type">form</field>
           <field name="view_mode">tree,form</field>
          <field name="view_id" ref="view_unpaid_invoice_view"/>
          <field name="target">new</field>
       </record>

        <menuitem name="List Unpaid Members" id="menu_unpaid_invoice"
			action="action_unpaid_invoice_view"
			parent="menu_membership" />

     </data>
</openerp>
