[IMP] crm_forward_to_partner: on_change_partner_ids -> onchange_partner_ids, already defined on mail.compose.message.
bzr revid: tde@openerp.com-20120904120240-hidqb9e3ivys9vpo
This commit is contained in:
parent
54ec6e8892
commit
5506e519fe
|
@ -89,11 +89,6 @@ class crm_lead_forward_to_partner(osv.osv_memory):
|
|||
lead = self.pool.get(model).browse(cr, uid, res_id, context=context)
|
||||
body = self._get_message_body(cr, uid, lead, history_mode, context=context)
|
||||
return {'value': {'body': body}}
|
||||
|
||||
def on_change_partner_ids(self, cr, uid, ids, partner_ids, context=None):
|
||||
""" TDE-TODO: Keep void; maybe we could check that partner_ids have
|
||||
email defined. """
|
||||
return {}
|
||||
|
||||
def create(self, cr, uid, values, context=None):
|
||||
""" TDE-HACK: remove 'type' from context, because when viewing an
|
||||
|
@ -106,9 +101,7 @@ class crm_lead_forward_to_partner(osv.osv_memory):
|
|||
return new_id
|
||||
|
||||
def action_forward(self, cr, uid, ids, context=None):
|
||||
"""
|
||||
Forward the lead to a partner
|
||||
"""
|
||||
""" Forward the lead to a partner """
|
||||
if context is None:
|
||||
context = {}
|
||||
res = {'type': 'ir.actions.act_window_close'}
|
||||
|
@ -126,7 +119,7 @@ class crm_lead_forward_to_partner(osv.osv_memory):
|
|||
|
||||
self.send_mail(cr, uid, ids, context=context)
|
||||
# for case in lead.browse(cr, uid, lead_ids, context=context):
|
||||
# TDE: WHAT TO DO WITH THAT ?
|
||||
# TODO: WHAT TO DO WITH THAT ?
|
||||
# if (this.send_to == 'partner' and this.partner_id):
|
||||
# lead.assign_partner(cr, uid, [case.id], this.partner_id.id, context=context)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
on_change="on_change_history_mode(history_mode, model, res_id)"/>
|
||||
<field name="subject" colspan="4"/>
|
||||
<field name="partner_ids" colspan="4" widget="many2many_tags"
|
||||
on_change="on_change_partner_ids(partner_ids)"/>
|
||||
on_change="onchange_partner_ids(partner_ids)"/>
|
||||
<notebook colspan="4">
|
||||
<page string="Body">
|
||||
<field name="body"/>
|
||||
|
|
Loading…
Reference in New Issue