diff --git a/crm_won_reason/tests/test_crm_lead_reason.py b/crm_won_reason/tests/test_crm_lead_reason.py index b2f9be5b9301..87c5c699bd8a 100644 --- a/crm_won_reason/tests/test_crm_lead_reason.py +++ b/crm_won_reason/tests/test_crm_lead_reason.py @@ -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)