<openerp>
      <data>

       <!-- Lead to Partner form view -->

       <record id="view_crm_lead2partner" model="ir.ui.view">
          <field name="name">crm.lead2partner.view</field>
          <field name="model">crm.lead2partner</field>
          <field name="type">form</field>
          <field name="arch" type="xml">
              <form string="Create a Partner">
                  <separator string="Create a Partner" colspan="4" />
                  <field name="action"/>
                  <group attrs="{'invisible':[('action','!=','exist')]}">
                    <field name="partner_id" attrs="{'required': [('action', '=', 'exist')]}"/>
                </group>
                <separator string="" colspan="4" />
                  <group col="4" colspan="4">
                      <button special="cancel" string="Cancel" icon="gtk-cancel"/>
                      <button name="make_partner" string="Continue" type="object" icon="gtk-ok"/>
                  </group>
              </form>
          </field>
       </record>

        
        <!-- Lead to Partner wizard -->
        <record id="action_crm_lead2partner" model="ir.actions.act_window">
            <field name="name">Create a Partner</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">crm.lead2partner</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_crm_lead2partner"/>
            <field name="target">new</field>
        </record>

     </data>
</openerp>
