[FIX]: crm: context problem of onchange in forward to partner wizard
bzr revid: rpa@tinyerp.com-20100603114023-2uwwm7sopkw6ccle
This commit is contained in:
parent
859b9b84c5
commit
8ce1789a57
|
@ -107,8 +107,8 @@ class crm_lead_forward_to_partner(osv.osv_memory):
|
|||
#TODO: ids and context are not comming
|
||||
res = False
|
||||
msg_val = ''
|
||||
res_id = False # Comes from context
|
||||
model = None # Comes from context
|
||||
res_id = context.get('active_id')
|
||||
model = context.get('active_model')
|
||||
model_pool = self.pool.get(model)
|
||||
if not res_id or not model:
|
||||
return res
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<form string="Forward to Partner">
|
||||
<separator string="User" colspan="4" />
|
||||
<field name="email_from" colspan="2" />
|
||||
<field name="history" colspan="2" on_change="on_change_history(history)"/>
|
||||
<field name="history" colspan="2" on_change="on_change_history(history, context)"/>
|
||||
<separator string="Send to" colspan="4" />
|
||||
<field name="name" colspan="2" />
|
||||
<group col="2" colspan="2" attrs="{ 'invisible' : [('name','!=','user')]}">
|
||||
|
|
Loading…
Reference in New Issue