From b60162dc0cf1e13f3df69ccbab1097771a63b0c8 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Thu, 20 Oct 2011 14:39:06 +0530 Subject: [ADD, MOVE, REN] crm_profiling: 1) added directory crm_profiling/test/process 2) renamed file crm_profiling/test/test_crm_profiling.yml => crm_profiling/test/process/profiling.yml 3) First computed questions(answers) scenario with parther and check that category set according to questions 4) Update __openerp__.py bzr revid: ron@tinyerp.com-20111020090906-3jab42z8a0y4moy6 --- addons/crm_profiling/test/process/profiling.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 addons/crm_profiling/test/process/profiling.yml (limited to 'addons/crm_profiling/test/process') diff --git a/addons/crm_profiling/test/process/profiling.yml b/addons/crm_profiling/test/process/profiling.yml new file mode 100644 index 00000000000..91c48410f8d --- /dev/null +++ b/addons/crm_profiling/test/process/profiling.yml @@ -0,0 +1,10 @@ +- + I check segmentation which allows users to perform segmentation within partners + and set the category according to question, so first compute questions(answers) + scenario with parther and check that category set according to questions. +- + !python {model: res.partner}: | + data ={'form': {'quest_form3': ref("partner_quality3"), 'quest_form2': ref("nb_employees2"),'quest_form1': ref("sector1"),'questionnaire_name': ref('questionnaire1')}, 'ids': [ref('base.res_partner_ericdubois0')], 'report_type': 'pdf', 'model': 'res.partner', 'id': ref('base.res_partner_ericdubois0')} + data = self._questionnaire_compute(cr, uid, data, context) + partner = self.browse(cr, uid, ref('base.res_partner_ericdubois0')) + assert partner.category_id[0].id == ref("base.res_partner_category_17"), "Category not assign properly" -- cgit v1.2.3 From c650f6eac93b8986fae89145d0cd14a67867aadd Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Fri, 21 Oct 2011 10:54:56 +0530 Subject: [IMP, MOVE, REN] crm_profiling: 1) Updated crm_profiling/crm_profiling_demo.xml(Added Exclusive field value True) 2) Renamed crm_profiling/test/test_crm_segmentation.yml => crm_profiling/test/process/segmentation.yml, 2) Improved segmentation.yml, 3) Updated __openerp__.py bzr revid: ron@tinyerp.com-20111021052456-1exoucyc5134qute --- addons/crm_profiling/test/process/segmentation.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 addons/crm_profiling/test/process/segmentation.yml (limited to 'addons/crm_profiling/test/process') diff --git a/addons/crm_profiling/test/process/segmentation.yml b/addons/crm_profiling/test/process/segmentation.yml new file mode 100644 index 00000000000..136bdf5e872 --- /dev/null +++ b/addons/crm_profiling/test/process/segmentation.yml @@ -0,0 +1,14 @@ +- + 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 \ No newline at end of file -- cgit v1.2.3 From 8e325979de7f96ef2210e0f77857db54f0b96b06 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Wed, 26 Oct 2011 19:31:33 +0530 Subject: [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 --- addons/crm_profiling/test/process/segmentation.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 addons/crm_profiling/test/process/segmentation.yml (limited to 'addons/crm_profiling/test/process') diff --git a/addons/crm_profiling/test/process/segmentation.yml b/addons/crm_profiling/test/process/segmentation.yml deleted file mode 100644 index 136bdf5e872..00000000000 --- a/addons/crm_profiling/test/process/segmentation.yml +++ /dev/null @@ -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 \ No newline at end of file -- cgit v1.2.3