diff options
| author | Kevin Baptiste <kba@odoo.com> | 2020-08-19 07:00:56 +0000 |
|---|---|---|
| committer | Kevin Baptiste <kba@odoo.com> | 2020-08-19 08:38:57 +0000 |
| commit | 375bfc66c87dbb36fd23e2bf7c1f45d689ff4a6e (patch) | |
| tree | 9754b8d34a2ad78ddf0da0acdf717da3e98943d5 /addons/project/models | |
| parent | 96e27f09006046aae75655386eddbca9feba31b5 (diff) | |
[FIX] project: remove constrains for multilevel subtasks
The commit 79132f6 allowed multiple level for the subtasks, but a
remnant from the ancient time was left.
closes odoo/odoo#56104
Taskid: 2317929
X-original-commit: ace68ceceb92f8d7c16155fd72acd469424accd0
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project/models')
| -rw-r--r-- | addons/project/models/project.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/addons/project/models/project.py b/addons/project/models/project.py index d24d6e4e4b3..bc415334515 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -953,12 +953,6 @@ class Task(models.Model): else: task.stage_id = False - @api.constrains('parent_id', 'child_ids') - def _check_subtask_level(self): - for task in self: - if task.parent_id and task.child_ids: - raise ValidationError(_('Task %s cannot have several subtask levels.', task.name)) - @api.returns('self', lambda value: value.id) def copy(self, default=None): if default is None: |
