From 1174014fd18a1f29087da4f61493584b8a27b4f9 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 24 Sep 2024 11:48:43 +0530 Subject: [PATCH] Sep 24: [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 7119a02a9..c691df6c5 100755 --- a/project_tasks_from_templates/__manifest__.py +++ b/project_tasks_from_templates/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'Project Templates', - 'version': '15.0.1.0.0', + 'version': '15.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 31d6aca71..09d7ffebb 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 15.0.1.0.0 #### ADD - Initial Commit for Project Templates + +#### 23.09.2024 +#### Version 15.0.1.0.1 +##### UPDT +- Bug Fix-Resolved the duplicate issues. diff --git a/project_tasks_from_templates/models/project_task_template.py b/project_tasks_from_templates/models/project_task_template.py index bb68baad2..4089c9d89 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.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): @@ -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.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):