<openerp>
  	<data>

		<!-- partner To Opportunity form -->

  		<record id="view_crm_partner2opportunity" model="ir.ui.view">
	      <field name="name">crm.crm.partner2opportunity</field>
	      <field name="model">crm.partner2opportunity</field>
	      <field name="type">form</field>
	      <field name="arch" type="xml">
	      	<form string="Convert To Opportunity">
	        <field name="name"/>
	        <field name="partner_id"/>
	        <newline/>
	        <field name="planned_revenue"/>
	        <field name="probability"/>
        		<separator string="" colspan="4" />
	      		<group col="4" colspan="4">
	      			<button special="cancel" string="_Cancel" icon="gtk-cancel"/>
	      			<button name="make_opportunity" string="Create Opportunity" type="object" icon="gtk-ok"/>
	      		</group>
	      	</form>
	      </field>
	   </record>

<!-- partner To Opportunity Action -->

	  <record model="ir.actions.act_window" id="action_view_crm_partner2opportunity">
            <field name="name">Create Opportunity</field>
            <field name="res_model">crm.partner2opportunity</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

	    <!-- partner To Opportunity wizard -->

	   <act_window id="crm_partner2opportunity"
    		key2="client_action_multi" name="Create Opportunity"
    		res_model="crm.partner2opportunity" src_model="res.partner"
    		view_id="view_crm_lead2partner_create"
    		view_mode="form" target="new" view_type="form"
    		groups="base.group_extended"/>

 	</data>
</openerp>
