[ADD]CRM:optimize the code

bzr revid: aag@tinyerp.com-20111215114947-23puczlqu9o6g13r
This commit is contained in:
Atik Agewan (OpenERP)
2011-12-15 17:19:47 +05:30
parent 56ea272c4c
commit 8a5f52a888
2 changed files with 0 additions and 2 deletions
@@ -5,7 +5,6 @@
-
!python {model: crm.lead}: |
self.case_open(cr, uid, [ref("crm_case_qrecorp0")])
context.update({'active_model': 'crm.lead','active_ids': [ref("crm_case_qrecorp0")]})
-
I check lead state is "Open".
-
@@ -17,7 +17,6 @@
-
!python {model: crm.lead}: |
opportunity_ids = self.search(cr, uid, [('partner_id','=', ref("base.res_partner_9"))])
context.update({'active_model': 'crm.lead','active_ids': opportunity_ids})
-
!record {model: crm.merge.opportunity, id: opportunity_merge_id }:
-