[ADD]CRM:optimize the code
bzr revid: aag@tinyerp.com-20111215114947-23puczlqu9o6g13r
This commit is contained in:
@@ -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 }:
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user