From 89d6c7971d526acd4a94e9bf23a9f5b7df87bb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 16 Sep 2015 17:42:08 +0200 Subject: [PATCH] Fix wrong join in migration of Work.parent issue4938 --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index 9ae3f9bc80..c4cb0e8039 100644 --- a/work.py +++ b/work.py @@ -153,7 +153,7 @@ class Work(ModelSQL, ModelView): query = project.join(timesheet, condition=project.work == timesheet.id ).join(second_project, - condition=timesheet.parent == second_project.id + condition=timesheet.parent == second_project.work ).select(project.id, second_project.id) cursor.execute(*query) for id_, parent in cursor.fetchall():