[IMP] project: improve Warning message for task recursion

Use same as other _check_recursion error messages

closes odoo/odoo#33125

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Swapnesh Shah
2019-08-02 09:12:31 +00:00
committed by Martin Trigaux
parent 75aca37453
commit 098a4ba67a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ msgstr ""
#. module: project
#: constraint:project.task:0
msgid "Circular references are not permitted between tasks and sub-tasks"
msgid "You cannot create recursive tasks."
msgstr ""
#. module: project
+1 -1
View File
@@ -530,7 +530,7 @@ class Task(models.Model):
@api.constrains('parent_id')
def _check_parent_id(self):
if not self._check_recursion():
raise ValidationError(_('Circular references are not permitted between tasks and sub-tasks'))
raise ValidationError(_('You cannot create recursive tasks.'))
def _compute_attachment_ids(self):
for task in self: