[FIX] not a smart test

This commit is contained in:
Fabien Pinckaers
2015-07-13 22:03:16 -07:00
parent 3f6b92e7b5
commit 7a541b0d07
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<field name="name">New</field>
<field name="probability">0</field>
<field name="on_change">1</field>
<field name="sequence">0</field>
<field name="sequence">1</field>
<field name="type">both</field>
</record>
<record model="crm.stage" id="stage_lead2">
-8
View File
@@ -7,14 +7,6 @@
partner_id: base.res_partner_1
description: This is the description of the test new lead.
team_id: sales_team.team_sales_department
-
I check default stage of lead.
-
!python {model: crm.lead}: |
stage = self.pool.get('crm.stage').search_read(cr,uid,[('sequence','=',1)],['id'],context)[0]
lead = self.browse(cr, uid, ref('test_crm_lead_new'))
stage_id = self.stage_find(cr, uid , [lead], lead.team_id.id or False,[], context)
assert stage_id == stage['id'], "Default stage of lead is incorrect!"
-
I change type from lead to opportunity.
-