diff --git a/cron_run_manually/tests/correct_uid.yml b/cron_run_manually/tests/correct_uid.yml index 34af0c227..d63294125 100644 --- a/cron_run_manually/tests/correct_uid.yml +++ b/cron_run_manually/tests/correct_uid.yml @@ -19,5 +19,5 @@ function: _current_uid - I execute the cron job manually to check its running UID -- !assert {model: ir.cron, id: check_uid_job}: | - self.run_manually()[0] == self.user_id +- !python {model: ir.cron, id: check_uid_job}: | + assert self.run_manually()[0] == self.user_id.id, "Wrong UID in cron job"