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