Improve the statments

bzr revid: dbr@tinyerp.com-20110922114325-pdaf41uih8gcgrmz
This commit is contained in:
DBR (OpenERP) 2011-09-22 17:13:25 +05:30
parent a00d78c141
commit cd78f6ac16
14 changed files with 31 additions and 31 deletions

View File

@ -61,7 +61,7 @@
!assert {model: crm.lead, id: crm_lead_newcustomer0, string: Lead in open state}:
- state == "open"
-
Now, Find id for case object.
I search id for case object.
-
!python {model: crm.case.categ}: |
self._find_object_id(cr, uid, context)
@ -76,7 +76,7 @@
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}:
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")})
-
|
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}:
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")})
-
|
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}:
action: 'nothing'

View File

@ -70,7 +70,7 @@
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}: |
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}:
- state == "open"
-
Now i reset the lead "Demo Customer".
I reset the lead "Demo Customer".
-
!python {model: crm.lead}: |
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}:
- 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}: |
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}:
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)
-
Now I Copying this lead "Demo Customer" to New Lead.
I Copying this lead "Demo Customer" to New Lead.
-
!python {model: crm.lead}: |
self.copy(cr, uid, ref("crm_lead_democustomer"))

View File

@ -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.
- |
I start by creating a new Meeting.
@ -33,7 +33,7 @@
trigger_occurs: before
trigger_related: start
- |
Now I will assign this reminder.
I will assign this reminder.
- !python {model: crm.meeting}: |
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'alarm_id': ref("res_alarm_minituesbefore0")})
@ -61,7 +61,7 @@
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}: |
self.write(cr, uid, [ref('crm_meeting_regardingpresentation0')], {'edit_all':'True'},context)

View File

@ -78,7 +78,7 @@
partner_id: base.res_partner_9
section_id: crm.section_sales_department
- |
Now, Merge the opportunities.
I Merge the opportunities.
-
for that create two opportunities first opportunity 'Test FUEL CO'.
-

View File

@ -7,7 +7,7 @@
partner_id: base.res_partner_9
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}: |
fields = {

View File

@ -7,14 +7,14 @@
duration: 2.0
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}:
action: exist
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}: |
@ -32,7 +32,7 @@
planned_revenue: 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}: |
self.action_apply(cr, uid, [ref("crm_phonecall2opportunity_interviewcall0")], {"active_id": ref("crm_phonecall_interviewcall0")})

View File

@ -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})
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}:
date: '2011-04-18 11:47:00'

View File

@ -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.
-
@ -10,7 +10,7 @@
som_interval: 0.0
sales_purchase_active : True
-
Now, Start the process.
I start the process.
-
!python {model: crm.segmentation}: |
self.process_start(cr, uid, [ref("crm_segmentation_id_0")],context)

View File

@ -61,7 +61,7 @@
!python {model: crm.lead}: |
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}: |
opportunity = self.browse(cr, uid, ref('crm_lead_openerppresentation0'))

View File

@ -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.
-

View File

@ -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.
- |
I start by creating new claims for Damaged product as Value Claims with priority High and specify

View File

@ -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.
- |
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}:
- state == 'draft'
- |
Now I open Funds by click on "Open" button.
I open Funds by click on "Open" button.
-
!python {model: crm.fundraising}: |
self.case_open(cr, uid, [ref('crm_fundraising_donationforbookstopoorschoolchildren0')])

View File

@ -62,7 +62,7 @@
probability: 0.0
type: opportunity
-
Now change the assigned partner.
I change the assigned partner.
-
!python {model: crm.lead}: |
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', })
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}: |
context.update({'history': 'latest', })
@ -94,12 +94,12 @@
context.update({'history': 'whole', })
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}: |
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}: |
from tools import config

View File

@ -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.
-
@ -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')}
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}:
description: First questionnaire.