From 11062e43e71ac82cf7c31a95ed94df9a2c9ccd1c Mon Sep 17 00:00:00 2001 From: David Tran Date: Tue, 14 Feb 2023 05:03:14 +0000 Subject: [PATCH] [FIX] project: should not copy email_from when copying task The field email_from is a computed stored field. Let it compute for the email_from instead of taking the one from the orginal task closes odoo/odoo#113107 X-original-commit: 22079d6433d4025f7f92f260bb6f01ba836dcc34 Signed-off-by: Xavier Bol (xbo) --- addons/project/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 904a507a9f0..34ba75bacce 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -1235,7 +1235,7 @@ class Task(models.Model): allow_subtasks = fields.Boolean(string="Allow Sub-tasks", related="project_id.allow_subtasks", readonly=True) subtask_count = fields.Integer("Sub-task Count", compute='_compute_subtask_count') email_from = fields.Char(string='Email From', help="These people will receive email.", index='trigram', - compute='_compute_email_from', recursive=True, store=True, readonly=False) + compute='_compute_email_from', recursive=True, store=True, readonly=False, copy=False) project_privacy_visibility = fields.Selection(related='project_id.privacy_visibility', string="Project Visibility") # Computed field about working time elapsed between record creation and assignation/closing. working_hours_open = fields.Float(compute='_compute_elapsed', string='Working Hours to Assign', digits=(16, 2), store=True, group_operator="avg")