[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) <xbo@odoo.com>
This commit is contained in:
committed by
Xavier BOL (xbo)
parent
e82a1cb2ef
commit
11062e43e7
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user