Skip to content

Commit

Permalink
[MIG][crm_won_reason] Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinagiuliani-rapsodoo committed Nov 15, 2024
1 parent 754f841 commit f0cf5c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crm_won_reason/tests/test_crm_lead_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def test_won_reason(self):

def test_lost_reason(self):
crm_lead = self.crm_lead_model.create({"name": "Testing lead lost reason"})
crm_lead.action_set_lost(lost_reason=self.lost_reason)
crm_lead.action_set_lost(lost_reason_id=self.lost_reason)
self.assertFalse(crm_lead.stage_id.is_won)
self.assertEqual(crm_lead.lost_reason.name, self.lost_reason.name)
self.assertEqual(crm_lead.lost_reason_id.name, self.lost_reason.name)

def test_unspecified_reason(self):
crm_lead = self.crm_lead_model.create(
{"name": "Testing lead unspecified reason"}
)
crm_lead.action_set_lost(lost_reason=self.unspecified_reason)
crm_lead.action_set_lost(lost_reason_id=self.unspecified_reason)
self.assertFalse(crm_lead.stage_id.is_won)
self.assertEqual(crm_lead.lost_reason.name, self.unspecified_reason.name)
self.assertEqual(crm_lead.lost_reason_id.name, self.unspecified_reason.name)

0 comments on commit f0cf5c4

Please sign in to comment.