[ADD]CRM:optimize the code

bzr revid: aag@tinyerp.com-20111215121247-2rtl9ki3du5ni403
This commit is contained in:
Atik Agewan (OpenERP)
2011-12-15 17:42:47 +05:30
parent 0a95b359b9
commit 5b253d6bd0
@@ -35,7 +35,7 @@
Now I schedule another phonecall to customer after merged.
-
!python {model: crm.phonecall2phonecall}: |
context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")})
context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")]})
res_id = self.create(cr, uid, {'name': "vos chances sont fusionnés en un seul"}, context=context)
self.action_schedule(cr, uid, [res_id], context=context)
-