[FIX] crm : Fixed while converting opportunity from phonecall wizard
authorron@tinyerp.com <>
Tue, 1 Nov 2011 13:14:21 +0000 (18:44 +0530)
committerron@tinyerp.com <>
Tue, 1 Nov 2011 13:14:21 +0000 (18:44 +0530)
bzr revid: ron@tinyerp.com-20111101131421-2cb2x5oc9yufuc3q

addons/crm/crm_phonecall.py
addons/crm/wizard/crm_phonecall_to_opportunity_view.xml

index 8763324..2443bd7 100644 (file)
@@ -238,6 +238,7 @@ class crm_phonecall(crm_base, osv.osv):
         address = self.pool.get('res.partner.address')
         opportunity = self.pool.get('crm.lead')
         opportunity_dict = {}
+        default_contact = False
         for call in self.browse(cr, uid, ids, context=context):
             if not partner_id:
                 partner_id = call.partner_id and call.partner_id.id or False
index ea02483..d3c59f8 100644 (file)
@@ -19,7 +19,7 @@
                     <group colspan="4" col="3" >
                        <label string=" " />
                         <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
-                        <button name="action_apply" type="object" string="_Convert" icon="gtk-convert" />
+                        <button name="make_opportunity" type="object" string="_Convert" icon="gtk-convert" />
                     </group>
                 </form>
             </field>