<openerp>
  	<data>

  	<!-- Phonecall to partner confirmation form -->
  	
  		<record id="view_crm_phonecall2partner_create" model="ir.ui.view">
	      <field name="name">crm.phonecall2partner.view.create</field>
	      <field name="model">crm.phonecall2partner</field>
	      <field name="type">form</field>
	      <field name="arch" type="xml">
	      	<form string="Create a Partner">
	      		<label string="Are you sure you want to create a partner based on this Phonecall ?" colspan="4"/>
        		<label string="You may have to verify that this partner does not exist already." colspan="4"/>
        		<separator string="" colspan="4" />
	      		<group col="4" colspan="4">
	      			<button special="cancel" string="Cancel" icon="gtk-cancel"/>
	      			<button name="open_create_partner" string="Create Partner" type="object" icon="gtk-ok"/>
	      		</group>
	      	</form>
	      </field>
	   </record>
	
	<!-- Phonecall to partner  form view -->
	
	   <record id="view_crm_phonecall2partner" model="ir.ui.view">
	      <field name="name">crm.phonecall2partner.view</field>
	      <field name="model">crm.phonecall2partner</field>
	      <field name="type">form</field>
	      <field name="arch" type="xml">
	      	<form string="Create a Partner">
	      		<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>

	 <!-- Phonecall to Partner wizard -->

		<record id="action_crm_phonecall2partner" 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.phonecall2partner</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_crm_phonecall2partner_create"/>
            <field name="target">new</field>
        </record>
		

 	</data>
</openerp>
