Improve the statments
bzr revid: dbr@tinyerp.com-20110922114325-pdaf41uih8gcgrmz
This commit is contained in:
parent
a00d78c141
commit
cd78f6ac16
|
@ -61,7 +61,7 @@
|
||||||
!assert {model: crm.lead, id: crm_lead_newcustomer0, string: Lead in open state}:
|
!assert {model: crm.lead, id: crm_lead_newcustomer0, string: Lead in open state}:
|
||||||
- state == "open"
|
- state == "open"
|
||||||
-
|
-
|
||||||
Now, Find id for case object.
|
I search id for case object.
|
||||||
-
|
-
|
||||||
!python {model: crm.case.categ}: |
|
!python {model: crm.case.categ}: |
|
||||||
self._find_object_id(cr, uid, context)
|
self._find_object_id(cr, uid, context)
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
assert action['res_model'] == 'crm.lead2opportunity.partner'
|
assert action['res_model'] == 'crm.lead2opportunity.partner'
|
||||||
-
|
-
|
||||||
|
|
|
|
||||||
Now, select "create a new partner" option in this wizard.
|
I select "create a new partner" option in this wizard.
|
||||||
-
|
-
|
||||||
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_0}:
|
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_0}:
|
||||||
action: 'create'
|
action: 'create'
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_0")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
|
self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_0")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
|
||||||
-
|
-
|
||||||
|
|
|
|
||||||
Now, select "Link to an existing partner" option in this wizard.
|
I select "Link to an existing partner" option in this wizard.
|
||||||
-
|
-
|
||||||
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_1}:
|
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_1}:
|
||||||
action: 'exist'
|
action: 'exist'
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_1")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
|
self.action_apply(cr, uid, [ref("crm_lead2opportunity_partner_create_1")], {'active_ids': [ref("crm_lead_newcustomer0")], 'active_id': ref("crm_lead_newcustomer0")})
|
||||||
-
|
-
|
||||||
|
|
|
|
||||||
Now, select "Do not link to a partner" option in this wizard.
|
I select "Do not link to a partner" option in this wizard.
|
||||||
-
|
-
|
||||||
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_2}:
|
!record {model: crm.lead2opportunity.partner, id: crm_lead2opportunity_partner_create_2}:
|
||||||
action: 'nothing'
|
action: 'nothing'
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
self.on_change_optout(cr, uid, ref("crm_lead_democustomer"), True)
|
self.on_change_optout(cr, uid, ref("crm_lead_democustomer"), True)
|
||||||
|
|
||||||
-
|
-
|
||||||
Now I change the Opt-out to Opt-in to show email receive preference.
|
I change the Opt-out to Opt-in to show email receive preference.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.on_change_optin(cr, uid, ref("crm_lead_democustomer"), True)
|
self.on_change_optin(cr, uid, ref("crm_lead_democustomer"), True)
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
!assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in open state}:
|
!assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in open state}:
|
||||||
- state == "open"
|
- state == "open"
|
||||||
-
|
-
|
||||||
Now i reset the lead "Demo Customer".
|
I reset the lead "Demo Customer".
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.case_reset(cr, uid, [ref("crm_lead_democustomer")])
|
self.case_reset(cr, uid, [ref("crm_lead_democustomer")])
|
||||||
|
@ -118,12 +118,12 @@
|
||||||
!assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in Pending state}:
|
!assert {model: crm.lead, id: crm_lead_democustomer, string: Lead in Pending state}:
|
||||||
- state == "pending"
|
- state == "pending"
|
||||||
-
|
-
|
||||||
Now I Escalate the Lead "Demo Customer" Parent "Sales Team".
|
I Escalate the Lead "Demo Customer" Parent "Sales Team".
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.case_escalate(cr, uid, [ref("crm_lead_democustomer")])
|
self.case_escalate(cr, uid, [ref("crm_lead_democustomer")])
|
||||||
-
|
-
|
||||||
Now I add Internal Note Saying Escalated Reason.
|
I add Internal Note Saying Escalated Reason.
|
||||||
-
|
-
|
||||||
!record {model: crm.add.note, id: crm_add_note_0}:
|
!record {model: crm.add.note, id: crm_add_note_0}:
|
||||||
body: Sales Lead Has Been Escalated Due to Some Technical reason to the parent 'Sales
|
body: Sales Lead Has Been Escalated Due to Some Technical reason to the parent 'Sales
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
self.action_add(cr, uid, [ref("crm_add_note_0")], context=context)
|
self.action_add(cr, uid, [ref("crm_add_note_0")], context=context)
|
||||||
|
|
||||||
-
|
-
|
||||||
Now I Copying this lead "Demo Customer" to New Lead.
|
I Copying this lead "Demo Customer" to New Lead.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.copy(cr, uid, ref("crm_lead_democustomer"))
|
self.copy(cr, uid, ref("crm_lead_democustomer"))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now I will test Meetings which may be customer meeting or phonecall meeting or
|
I will test Meetings which may be customer meeting or phonecall meeting or
|
||||||
internal Meeting.
|
internal Meeting.
|
||||||
- |
|
- |
|
||||||
I start by creating a new Meeting.
|
I start by creating a new Meeting.
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
trigger_occurs: before
|
trigger_occurs: before
|
||||||
trigger_related: start
|
trigger_related: start
|
||||||
- |
|
- |
|
||||||
Now I will assign this reminder.
|
I will assign this reminder.
|
||||||
|
|
||||||
- !python {model: crm.meeting}: |
|
- !python {model: crm.meeting}: |
|
||||||
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'alarm_id': ref("res_alarm_minituesbefore0")})
|
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'alarm_id': ref("res_alarm_minituesbefore0")})
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
assert len(ids) == 10
|
assert len(ids) == 10
|
||||||
|
|
||||||
- |
|
- |
|
||||||
Now If I want to edit meetings information for all occurrence I click on "Edit All" button.
|
If I want to edit meetings information for all occurrence I click on "Edit All" button.
|
||||||
-
|
-
|
||||||
!python {model: crm.meeting}: |
|
!python {model: crm.meeting}: |
|
||||||
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'edit_all':'True'},context)
|
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'edit_all':'True'},context)
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
partner_id: base.res_partner_9
|
partner_id: base.res_partner_9
|
||||||
section_id: crm.section_sales_department
|
section_id: crm.section_sales_department
|
||||||
- |
|
- |
|
||||||
Now, Merge the opportunities.
|
I Merge the opportunities.
|
||||||
-
|
-
|
||||||
for that create two opportunities first opportunity 'Test FUEL CO'.
|
for that create two opportunities first opportunity 'Test FUEL CO'.
|
||||||
-
|
-
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
partner_id: base.res_partner_9
|
partner_id: base.res_partner_9
|
||||||
probability: 0.0
|
probability: 0.0
|
||||||
-
|
-
|
||||||
Now, click on "Create Opportunity" button of this wizard.
|
I click on "Create Opportunity" button of this wizard.
|
||||||
-
|
-
|
||||||
!python {model: crm.partner2opportunity}: |
|
!python {model: crm.partner2opportunity}: |
|
||||||
fields = {
|
fields = {
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
duration: 2.0
|
duration: 2.0
|
||||||
section_id: crm.section_sales_department
|
section_id: crm.section_sales_department
|
||||||
-
|
-
|
||||||
Now , I select partner by click on "Create a Partner" button.
|
I select partner by click on "Create a Partner" button.
|
||||||
-
|
-
|
||||||
!record {model: crm.phonecall2partner, id: crm_phonecall2partner_1}:
|
!record {model: crm.phonecall2partner, id: crm_phonecall2partner_1}:
|
||||||
action: exist
|
action: exist
|
||||||
partner_id: base.res_partner_9
|
partner_id: base.res_partner_9
|
||||||
|
|
||||||
-
|
-
|
||||||
Now, click on "Continue" button of this wizard.
|
I click on "Continue" button of this wizard.
|
||||||
-
|
-
|
||||||
!python {model: crm.phonecall2partner}: |
|
!python {model: crm.phonecall2partner}: |
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
planned_revenue: 0.0
|
planned_revenue: 0.0
|
||||||
probability: 0.0
|
probability: 0.0
|
||||||
-
|
-
|
||||||
Now, I click on "Convert" button of this wizard.
|
I click on "Convert" button of this wizard.
|
||||||
-
|
-
|
||||||
!python {model: crm.phonecall2opportunity}: |
|
!python {model: crm.phonecall2opportunity}: |
|
||||||
self.action_apply(cr, uid, [ref("crm_phonecall2opportunity_interviewcall0")], {"active_id": ref("crm_phonecall_interviewcall0")})
|
self.action_apply(cr, uid, [ref("crm_phonecall2opportunity_interviewcall0")], {"active_id": ref("crm_phonecall_interviewcall0")})
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
meeting_ids = self.search(cr, uid, [('id', 'in', [ref('crm_meeting_testmeeting0')]),('date','>=','2011-03-13'), ('date_deadline', '<=', '2011-05-13')], context={'virtual_id': True})
|
meeting_ids = self.search(cr, uid, [('id', 'in', [ref('crm_meeting_testmeeting0')]),('date','>=','2011-03-13'), ('date_deadline', '<=', '2011-05-13')], context={'virtual_id': True})
|
||||||
assert len(meeting_ids) == 5, 'Recurrent daily meetings are not created !'
|
assert len(meeting_ids) == 5, 'Recurrent daily meetings are not created !'
|
||||||
-
|
-
|
||||||
Now I create a weekly meeting till a particular end date.
|
I create a weekly meeting till a particular end date.
|
||||||
-
|
-
|
||||||
!record {model: crm.meeting, id: crm_meeting_reviewcodewithprogrammer0}:
|
!record {model: crm.meeting, id: crm_meeting_reviewcodewithprogrammer0}:
|
||||||
date: '2011-04-18 11:47:00'
|
date: '2011-04-18 11:47:00'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now I will test segmentation which create specific partner categories criteria.
|
I will test segmentation which create specific partner categories criteria.
|
||||||
-
|
-
|
||||||
I create a new segmentation record.
|
I create a new segmentation record.
|
||||||
-
|
-
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
som_interval: 0.0
|
som_interval: 0.0
|
||||||
sales_purchase_active : True
|
sales_purchase_active : True
|
||||||
-
|
-
|
||||||
Now, Start the process.
|
I start the process.
|
||||||
-
|
-
|
||||||
!python {model: crm.segmentation}: |
|
!python {model: crm.segmentation}: |
|
||||||
self.process_start(cr, uid, [ref("crm_segmentation_id_0")],context)
|
self.process_start(cr, uid, [ref("crm_segmentation_id_0")],context)
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.case_mark_lost(cr, uid, [ref('crm_lead_openerppresentation0')])
|
self.case_mark_lost(cr, uid, [ref('crm_lead_openerppresentation0')])
|
||||||
-
|
-
|
||||||
Now I check whether the probability is set according to stage change or not.
|
I check whether the probability is set according to stage change or not.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
opportunity = self.browse(cr, uid, ref('crm_lead_openerppresentation0'))
|
opportunity = self.browse(cr, uid, ref('crm_lead_openerppresentation0'))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now Create test cases for Sharing meeting with other calendar clients like sunbird.
|
I create test cases for Sharing meeting with other calendar clients like sunbird.
|
||||||
- |
|
- |
|
||||||
I start by creating a new Meeting.
|
I start by creating a new Meeting.
|
||||||
-
|
-
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now I check claims which contain customer claim information about document
|
I check claims which contain customer claim information about document
|
||||||
related problem, product related problem.
|
related problem, product related problem.
|
||||||
- |
|
- |
|
||||||
I start by creating new claims for Damaged product as Value Claims with priority High and specify
|
I start by creating new claims for Damaged product as Value Claims with priority High and specify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now I start test Fund Raising which contain information about Donation or charity
|
I start test Fund Raising which contain information about Donation or charity
|
||||||
given by user.
|
given by user.
|
||||||
- |
|
- |
|
||||||
I start by creating new Funds entry for donation for books to poor school children
|
I start by creating new Funds entry for donation for books to poor school children
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
!assert {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
|
!assert {model: crm.fundraising, id: crm_fundraising_donationforbookstopoorschoolchildren0}:
|
||||||
- state == 'draft'
|
- state == 'draft'
|
||||||
- |
|
- |
|
||||||
Now I open Funds by click on "Open" button.
|
I open Funds by click on "Open" button.
|
||||||
-
|
-
|
||||||
!python {model: crm.fundraising}: |
|
!python {model: crm.fundraising}: |
|
||||||
self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])
|
self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
probability: 0.0
|
probability: 0.0
|
||||||
type: opportunity
|
type: opportunity
|
||||||
-
|
-
|
||||||
Now change the assigned partner.
|
I change the assigned partner.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead}: |
|
!python {model: crm.lead}: |
|
||||||
self.onchange_assign_id(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], ref('base.res_partner_desertic_hispafuentes'), context)
|
self.onchange_assign_id(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], ref('base.res_partner_desertic_hispafuentes'), context)
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
context.update({'history': 'info', })
|
context.update({'history': 'info', })
|
||||||
self.on_change_history(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], context.get('history'), context)
|
self.on_change_history(cr, uid, [ref('crm_lead_questionnaireonopenerp0')], context.get('history'), context)
|
||||||
-
|
-
|
||||||
Now check the case history.
|
I check the case history.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead.forward.to.partner}: |
|
!python {model: crm.lead.forward.to.partner}: |
|
||||||
context.update({'history': 'latest', })
|
context.update({'history': 'latest', })
|
||||||
|
@ -94,12 +94,12 @@
|
||||||
context.update({'history': 'whole', })
|
context.update({'history': 'whole', })
|
||||||
self._get_case_history(cr, uid, context.get('history'), ref('crm_lead_questionnaireonopenerp0'), context=context)
|
self._get_case_history(cr, uid, context.get('history'), ref('crm_lead_questionnaireonopenerp0'), context=context)
|
||||||
-
|
-
|
||||||
Now get lead details.
|
I get lead details.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead.forward.to.partner}: |
|
!python {model: crm.lead.forward.to.partner}: |
|
||||||
self.get_lead_details(cr, uid, ref('crm_lead_questionnaireonopenerp0'), context)
|
self.get_lead_details(cr, uid, ref('crm_lead_questionnaireonopenerp0'), context)
|
||||||
-
|
-
|
||||||
Now I click on Forward button.
|
I click on Forward button.
|
||||||
-
|
-
|
||||||
!python {model: crm.lead.forward.to.partner}: |
|
!python {model: crm.lead.forward.to.partner}: |
|
||||||
from tools import config
|
from tools import config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- |
|
- |
|
||||||
Now I check segmentation which allows users to perform segmentation within partners.
|
I check segmentation which allows users to perform segmentation within partners.
|
||||||
-
|
-
|
||||||
I create a crm profiling question record.
|
I create a crm profiling question record.
|
||||||
-
|
-
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
data ={'form': {'questionnaire_name': ref('res_partner_john0')}, 'ids': [ref('res_partner_john0')], 'report_type': 'pdf', 'model': 'res.partner', 'id': ref('res_partner_john0')}
|
data ={'form': {'questionnaire_name': ref('res_partner_john0')}, 'ids': [ref('res_partner_john0')], 'report_type': 'pdf', 'model': 'res.partner', 'id': ref('res_partner_john0')}
|
||||||
self._questionnaire_compute(cr, uid, data, context)
|
self._questionnaire_compute(cr, uid, data, context)
|
||||||
- |
|
- |
|
||||||
Now, I start by creating new Questionnaire.
|
I start by creating new Questionnaire.
|
||||||
-
|
-
|
||||||
!record {model: crm_profiling.questionnaire, id: crm_profiling_questionnaire_basequestionnaire0}:
|
!record {model: crm_profiling.questionnaire, id: crm_profiling_questionnaire_basequestionnaire0}:
|
||||||
description: First questionnaire.
|
description: First questionnaire.
|
||||||
|
|
Loading…
Reference in New Issue