From d9dc45e60f22f1dbf6814171750c3bcd163684b3 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Mon, 23 Sep 2024 17:40:12 +0530 Subject: [PATCH] Sep 23: [FIX] Bug Fixed 'project_tasks_from_templates' --- project_tasks_from_templates/__manifest__.py | 2 +- project_tasks_from_templates/doc/RELEASE_NOTES.md | 6 ++++++ .../models/project_task_template.py | 13 +++++++------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/project_tasks_from_templates/__manifest__.py b/project_tasks_from_templates/__manifest__.py index 80e721ecb..5cc4382e2 100755 --- a/project_tasks_from_templates/__manifest__.py +++ b/project_tasks_from_templates/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'Project Templates', - 'version': '17.0.1.0.0', + 'version': '17.0.1.0.1', 'category': "Project", 'summary': "This app allows your project team to create project" "template and task template", diff --git a/project_tasks_from_templates/doc/RELEASE_NOTES.md b/project_tasks_from_templates/doc/RELEASE_NOTES.md index 722e33ddc..66cd2b1fa 100755 --- a/project_tasks_from_templates/doc/RELEASE_NOTES.md +++ b/project_tasks_from_templates/doc/RELEASE_NOTES.md @@ -1,5 +1,11 @@ ## Module + #### 09.01.2024 #### Version 17.0.1.0.0 #### ADD - Initial Commit for Project Templates + +#### 23.09.2024 +#### Version 17.0.1.0.1 +##### UPDT +- Bug Fix-Resolved the duplicate issues. \ No newline at end of file diff --git a/project_tasks_from_templates/models/project_task_template.py b/project_tasks_from_templates/models/project_task_template.py index 0493582af..09c4e644d 100644 --- a/project_tasks_from_templates/models/project_task_template.py +++ b/project_tasks_from_templates/models/project_task_template.py @@ -19,7 +19,7 @@ # If not, see . # ############################################################################### -from odoo import fields, models , api +from odoo import fields, models, api class ProjectTaskTemplate(models.Model): @@ -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.sub.task', '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): @@ -49,12 +49,13 @@ class ProjectStage(models.Model): help='Select a project task template to use for this task.') project_stage_id = fields.Many2one( 'project.task.type', string='Project Stage', - help='Select a project stage. ',required=True) + help='Select a project stage. ', required=True) task_ids = fields.Many2many( 'project.sub.task', 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):