Skip to content

Commit 09a5beb

Browse files
A-Yehia19vchu-odoo
authored andcommitted
[IMP] project: copy 'Favourite' field when duplicating a project
Make the `is_favourite` field copied during project duplication by setting the `copy` attribute to `True` task-4764606 closes odoo#213842 Signed-off-by: Xavier Bol (xbo) <[email protected]>
1 parent 2f7b6ea commit 09a5beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/project/models/project_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _set_favorite_user_ids(self, is_favorite):
9898
'res.users', 'project_favorite_user_rel', 'project_id', 'user_id',
9999
string='Members', export_string_translation=False, copy=False)
100100
is_favorite = fields.Boolean(compute='_compute_is_favorite', readonly=False, search='_search_is_favorite',
101-
compute_sudo=True, string='Show Project on Dashboard', export_string_translation=False)
101+
compute_sudo=True, string='Show Project on Dashboard', export_string_translation=False, copy=True)
102102
label_tasks = fields.Char(string='Use Tasks as', default=lambda s: s.env._('Tasks'), translate=True,
103103
help="Name used to refer to the tasks of your project e.g. tasks, tickets, sprints, etc...")
104104
tasks = fields.One2many('project.task', 'project_id', string="Task Activities")

0 commit comments

Comments
 (0)