[IMP]: yml for crm merge lead

bzr revid: aja@tinyerp.com-20130625055843-0rogdox72xbsvww0
This commit is contained in:
ajay javiya (OpenERP)
2013-06-25 11:28:43 +05:30
parent 70a1f74269
commit 730e2b44bb
+8 -8
View File
@@ -1,13 +1,6 @@
-
During a mixed merge (involving leads and opps), data should be handled a certain way following their type (m2o, m2m, text, ...) Start by creating two leads and an opp.
-
!record {model: crm.lead, id: test_crm_opp_01}:
type: 'opportunity'
name: 'Test opportunity 1'
partner_id: base.res_partner_5
stage_id: stage_lead1
description: This is the description of the test opp 1.
-
!record {model: crm.lead, id: test_crm_lead_01}:
type: 'lead'
@@ -22,9 +15,16 @@
partner_id: base.res_partner_3
stage_id: stage_lead1
description: This is the description of the test lead 2.
-
!record {model: crm.lead, id: test_crm_opp_01}:
type: 'opportunity'
name: 'Test opportunity 1'
partner_id: base.res_partner_5
stage_id: stage_lead1
description: This is the description of the test opp 1.
-
!python {model: crm.lead}: |
lead_ids = [ref('test_crm_opp_01'),ref('test_crm_lead_01'), ref('test_crm_lead_02')]
lead_ids = [ref('test_crm_lead_01'), ref('test_crm_lead_02'),ref('test_crm_opp_01')]
context.update({'active_model': 'crm.lead', 'active_ids': lead_ids, 'active_id': lead_ids[0]})
-
I create a merge wizard and merge the leads and opp together in the first item of the list.