[FIX]: crm: context problem of onchange in forward to partner wizard

bzr revid: rpa@tinyerp.com-20100603114023-2uwwm7sopkw6ccle
This commit is contained in:
rpa (Open ERP) 2010-06-03 17:10:23 +05:30
parent 859b9b84c5
commit 8ce1789a57
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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')]}">