[IMP] crm, crm_profile: move segmentation.yml from crm_profile to crm module and add demo data of segmentation in crm module

bzr revid: hmo@tinyerp.com-20111026140133-43p1zdo9sqrzs9te
This commit is contained in:
Harry (OpenERP) 2011-10-26 19:31:33 +05:30
parent 477e4c09b4
commit 8e325979de
6 changed files with 22 additions and 20 deletions

View File

@ -123,6 +123,7 @@ Creates a dashboard for CRM that includes:
'test/process/lead2opportunity2win.yml',
'test/process/merge_opportunity.yml',
'test/process/cancel_lead.yml',
'test/process/segmentation.yml',
'test/ui/onchange_events.yml',
],
'installable': True,

View File

@ -18,5 +18,10 @@
<field name="parent_id" ref="crm.section_sales_department"></field>
</record>
<record model="crm.segmentation" id="crm_segmentation0">
<field name="name">OpenERP partners</field>
<field name="categ_id" ref="base.res_partner_category_2"/>
</record>
</data>
</openerp>

View File

@ -0,0 +1,9 @@
-
In order to test segmentation process which create specific partner categories criteria,
-
I start the process.
-
!python {model: crm.segmentation}: |
self.process_start(cr, uid, [ref("crm_segmentation0")],context)
#Todo: Need to check after segmentation started

View File

@ -41,8 +41,9 @@ It also has been merged with the earlier CRM & SRM segmentation tool because the
'init_xml': [],
'update_xml': ['security/ir.model.access.csv', 'crm_profiling_view.xml'],
'demo_xml': ['crm_profiling_demo.xml'],
'test': [#'test/process/profiling.yml', #TODO:It's not debuging because problem to write data for open.questionnaire from partner section.
'test/process/segmentation.yml',],
'test': [
#'test/process/profiling.yml', #TODO:It's not debuging because problem to write data for open.questionnaire from partner section.
],
'installable': True,
'active': False,
'certificate': '0033984979005',

View File

@ -102,7 +102,7 @@
Profiles / crm.segmentation
-->
<record model="crm.segmentation" id="crm_segmentation0">
<record model="crm.segmentation" id="crm.crm_segmentation0">
<field name="name">OpenERP partners</field>
<field name="answer_yes" eval="[(6,0,[partner_tiny1])]" />
<field name="categ_id" ref="base.res_partner_category_2"/>
@ -111,21 +111,21 @@
<record model="crm.segmentation" id="crm_segmentation1">
<field name="name">Bronze partners</field>
<field name="answer_yes" eval="[(6,0,[partner_quality1])]" />
<field name="parent_id" ref="crm_segmentation0"/>
<field name="parent_id" ref="crm.crm_segmentation0"/>
<field name="categ_id" ref="base.res_partner_category_3"/>
<field name="profiling_active">True</field>
</record>
<record model="crm.segmentation" id="crm_segmentation2">
<field name="name">Silver partners</field>
<field name="answer_yes" eval="[(6,0,[partner_quality2])]" />
<field name="parent_id" ref="crm_segmentation0"/>
<field name="parent_id" ref="crm.crm_segmentation0"/>
<field name="categ_id" ref="base.res_partner_category_4"/>
<field name="profiling_active">True</field>
</record>
<record model="crm.segmentation" id="crm_segmentation3">
<field name="name">Gold partners</field>
<field name="answer_yes" eval="[(6,0,[partner_quality3])]" />
<field name="parent_id" ref="crm_segmentation0"/>
<field name="parent_id" ref="crm.crm_segmentation0"/>
<field name="categ_id" ref="base.res_partner_category_5"/>
<field name="exclusif">True</field>
<field name="profiling_active">True</field>

View File

@ -1,14 +0,0 @@
-
In order to test segmentation process which create specific partner categories criteria.so i start
the process.
-
!python {model: crm.segmentation}: |
self.process_start(cr, uid, [ref("crm_segmentation3")],context)
#Todo: Need to check after segmentation started
-
I continue the segmentation process.
-
!python {model: crm.segmentation}: |
context.update({'start': True})
self.process_continue(cr, uid, [ref("crm_segmentation3")], context)
#Todo: Need to check After segmentation process completed