File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ def test_won_reason(self):
36
36
37
37
def test_lost_reason (self ):
38
38
crm_lead = self .crm_lead_model .create ({"name" : "Testing lead lost reason" })
39
- crm_lead .action_set_lost (lost_reason = self .lost_reason )
39
+ crm_lead .action_set_lost (lost_reason_id = self .lost_reason )
40
40
self .assertFalse (crm_lead .stage_id .is_won )
41
- self .assertEqual (crm_lead .lost_reason .name , self .lost_reason .name )
41
+ self .assertEqual (crm_lead .lost_reason_id .name , self .lost_reason .name )
42
42
43
43
def test_unspecified_reason (self ):
44
44
crm_lead = self .crm_lead_model .create (
45
45
{"name" : "Testing lead unspecified reason" }
46
46
)
47
- crm_lead .action_set_lost (lost_reason = self .unspecified_reason )
47
+ crm_lead .action_set_lost (lost_reason_id = self .unspecified_reason )
48
48
self .assertFalse (crm_lead .stage_id .is_won )
49
- self .assertEqual (crm_lead .lost_reason .name , self .unspecified_reason .name )
49
+ self .assertEqual (crm_lead .lost_reason_id .name , self .unspecified_reason .name )
You can’t perform that action at this time.
0 commit comments