Skip to content

Commit

Permalink
Merge PR #1339 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 11, 2024
2 parents bf300d4 + 36b3386 commit f3e3d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project_type/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class ProjectProject(models.Model):
type_id = fields.Many2one(
comodel_name="project.type",
string="Type",
copy=False,
copy=True,
domain="[('project_ok', '=', True)]",
)
5 changes: 4 additions & 1 deletion project_type/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ class ProjectTask(models.Model):
_inherit = "project.task"

type_id = fields.Many2one(
comodel_name="project.type", string="Type", domain="[('task_ok', '=', True)]"
comodel_name="project.type",
string="Type",
domain="[('task_ok', '=', True)]",
copy=True,
)

0 comments on commit f3e3d43

Please sign in to comment.