|
|
@ -28,15 +28,15 @@ class ProjectTaskTemplate(models.Model): |
|
|
|
_description = 'Project Task Template' |
|
|
|
|
|
|
|
name = fields.Char(string='Template Name', translate=True, |
|
|
|
help='Name for the task template.') |
|
|
|
help='Name for the task template.', copy=False) |
|
|
|
task_ids = fields.One2many( |
|
|
|
'project.task.custom', 'project_template_id', |
|
|
|
string='Tasks', |
|
|
|
help='List of the tasks associated with this template.') |
|
|
|
help='List of the tasks associated with this template.', copy=True) |
|
|
|
stage_ids = fields.One2many( |
|
|
|
'project.stage', 'project_template_id', |
|
|
|
string='Stages', |
|
|
|
help='List of the stages associated with this template.') |
|
|
|
help='List of the stages associated with this template.', copy=True) |
|
|
|
|
|
|
|
|
|
|
|
class ProjectStage(models.Model): |
|
|
@ -54,7 +54,8 @@ class ProjectStage(models.Model): |
|
|
|
'project.task.custom', |
|
|
|
help='Choose the tasks corresponding to each stage') |
|
|
|
|
|
|
|
sequence = fields.Integer(related="project_stage_id.sequence",readonly=False) |
|
|
|
sequence = fields.Integer(related="project_stage_id.sequence", |
|
|
|
readonly=False) |
|
|
|
|
|
|
|
|
|
|
|
class ProjectTaskType(models.Model): |
|
|
|