From 5e7eb767b67d46033a863264ddd133b2a95889d3 Mon Sep 17 00:00:00 2001 From: Lanto Razafindrabe <124650562+lanto-razafindrabe@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:29:02 +0300 Subject: [PATCH] TA#70089 [14.0][CHG] project_type : allow copy on project type (#445) --- project_type/README.md | 2 ++ project_type/__manifest__.py | 2 +- project_type/models/project.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project_type/README.md b/project_type/README.md index 2e175d55..6cbd76cd 100644 --- a/project_type/README.md +++ b/project_type/README.md @@ -2,6 +2,8 @@ This module adds the fields `sequence`, `active` and `color` to the project type Form view. +Since version 1.1.1, it allows to copy the project type when duplicating project. + Contributors ------------ * Numigi (tm) and all its contributors (https://bit.ly/numigiens) diff --git a/project_type/__manifest__.py b/project_type/__manifest__.py index 29a1f490..1da9e178 100644 --- a/project_type/__manifest__.py +++ b/project_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Project Type", - "version": "1.1.0", + "version": "1.1.1", "author": "Numigi", "maintainer": "Numigi", "website": "https://bit.ly/numigi-com", diff --git a/project_type/models/project.py b/project_type/models/project.py index a9b7c10d..5a1af7b8 100644 --- a/project_type/models/project.py +++ b/project_type/models/project.py @@ -7,4 +7,4 @@ class ProjectWithType(models.Model): _inherit = 'project.project' - type_id = fields.Many2one(tracking=True) + type_id = fields.Many2one(tracking=True, copy=True)