- I create a record to compute the tasks of project. - !record {model: project.compute.tasks, id: project_compute_tasks0}: project_id: project.project_project_1 - I compute and shedule the tasks. - !python {model: project.compute.tasks}: | self.compute_date(cr, uid, [ref("project_compute_tasks0")]) - Check if tasks scheduled, check that either of task's start_date, end_date and user_id is not null - !python {model: project.project}: | prj = self.browse(cr, uid, [ref("project.project_project_1")])[0] for task in prj.tasks: if task.stage_id and task.stage_id.fold: continue assert task.user_id and task.date_start and task.date_end, "Project tasks not scheduled"