Skip to content

Commit

Permalink
[FIX] crm: Harmonize some demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
tivisse committed Sep 23, 2019
1 parent 4f6de10 commit dea1add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions addons/crm/data/crm_lead_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Andrew</p>]]></field>
<record id="crm_case_13" model="crm.lead">
<field name="create_date" eval="datetime.now() - timedelta(days=1)"/>
<field name="type">opportunity</field>
<field name="name">Quote for 600 Chairs</field>
<field name="name">Quote for 12 Tables</field>
<field name="planned_revenue">40000</field>
<field name="probability">10.0</field>
<field name="contact_name">Will McEncroe</field>
Expand Down Expand Up @@ -875,7 +875,7 @@ Andrew</p>]]></field>
<record id="crm_case_31" model="crm.lead">
<field name="create_date" eval="datetime.now() - relativedelta(months=1)"/>
<field name="type">opportunity</field>
<field name="name">Quote for 600 Chairs</field>
<field name="name">Quote for 150 carpets</field>
<field name="planned_revenue">40000</field>
<field name="probability">10.0</field>
<field name="contact_name">Erik N. French</field>
Expand Down Expand Up @@ -1140,7 +1140,7 @@ Andrew</p>]]></field>
<record id="crm_case_graph_12" model="crm.lead">
<field name="create_date" eval="datetime.now() - relativedelta(days=52)"/>
<field name="type">lead</field>
<field name="name">Quote for 600 Chairs</field>
<field name="name">Quote for 35 windows</field>
<field name="planned_revenue">41421</field>
<field name="probability">20</field>
<field name="contact_name">Tommi Brockhouse</field>
Expand Down
2 changes: 1 addition & 1 deletion addons/crm/tests/test_lead2opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_lead2opportunity2win(self):
mass.with_user(self.crm_salemanager).mass_convert()

# Now I check first lead converted on opportunity.
self.assertEqual(crm_case_13.name, "Quote for 600 Chairs", "Opportunity name not correct")
self.assertEqual(crm_case_13.name, "Quote for 12 Tables", "Opportunity name not correct")
self.assertEqual(crm_case_13.type, 'opportunity', "Lead is not converted to opportunity!")
expected_partner = "Will McEncroe"
self.assertEqual(crm_case_13.partner_id.name, expected_partner, "Partner mismatch! %s vs %s" % (crm_case_13.partner_id.name, expected_partner))
Expand Down

0 comments on commit dea1add

Please sign in to comment.