2011-11-22 06:41:59 +00:00
|
|
|
-
|
|
|
|
I create lead record to call of partner onchange, stage onchange and Mailing opt-in onchange method.
|
|
|
|
-
|
2012-07-30 10:23:52 +00:00
|
|
|
!record {model: crm.lead, id: crm_case_25}:
|
2011-11-22 06:41:59 +00:00
|
|
|
name: 'Need more info about your pc2'
|
2012-06-20 12:03:05 +00:00
|
|
|
partner_id: base.res_partner_2
|
2011-11-22 06:41:59 +00:00
|
|
|
type: opportunity
|
|
|
|
stage_id: crm.stage_lead1
|
|
|
|
state: draft
|
|
|
|
-
|
|
|
|
I create lead record to call Mailing opt-out onchange method.
|
|
|
|
-
|
2012-07-30 10:23:52 +00:00
|
|
|
!record {model: crm.lead, id: crm_case_18}:
|
2011-11-22 06:41:59 +00:00
|
|
|
name: 'Need 20 Days of Consultancy'
|
|
|
|
type: opportunity
|
|
|
|
state: draft
|
2012-05-08 08:42:14 +00:00
|
|
|
opt_out: True
|
2011-11-22 06:41:59 +00:00
|
|
|
-
|
|
|
|
I create phonecall record to call partner onchange method.
|
|
|
|
-
|
2012-07-30 10:29:47 +00:00
|
|
|
!record {model: crm.phonecall, id: crm_phonecall_5}:
|
2011-11-22 06:41:59 +00:00
|
|
|
name: 'Bad time'
|
|
|
|
partner_id: base.res_partner_5
|
|
|
|
-
|
|
|
|
I setting next stage "New" for the lead.
|
|
|
|
-
|
|
|
|
!python {model: crm.lead}: |
|
2012-07-30 10:23:52 +00:00
|
|
|
self.stage_next(cr, uid, [ref("crm_case_4")], context={'stage_type': 'lead'})
|