[FIX] crm : Fixed while converting opportunity from phonecall wizard
bzr revid: ron@tinyerp.com-20111101131421-2cb2x5oc9yufuc3q
This commit is contained in:
parent
d174301464
commit
1627d5e2c1
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue