[IMP] CRM: Update Active id in Context

bzr revid: aag@tinyerp.com-20111207054407-us90huju1qm9dixd
This commit is contained in:
Atik Agewan (OpenERP)
2011-12-07 11:14:07 +05:30
parent 7d6e5d09b7
commit 401271fad8
@@ -9,7 +9,7 @@
I make another opportunity from phonecall for same customer.
-
!python {model: crm.phonecall2opportunity}: |
context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")]})
context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
res_id = self.create(cr, uid, {'name': "Quoi de prix de votre autre service?", 'partner_id': ref("base.res_partner_9")}, context=context)
self.make_opportunity(cr, uid, [res_id], context=context)
-