handle inactive records in get_parent
This commit is contained in:
1 parent
ad98c1c2fc
commit
48555cd2ed
1 file changed
+3
-1
@@ -113,9 +113,11 @@ class Work(ModelSQL, ModelView):
|
||||
for project_work in project_works:
|
||||
ptw2pw[project_work.work.parent.id] = project_work.id
|
||||
|
||||
ctx = context and context.copy() or {}
|
||||
ctx['active_test'] = False
|
||||
parent_project_ids = self.search(cursor, user, [
|
||||
('work', 'in', ptw2pw.keys()),
|
||||
], context=context)
|
||||
], context=ctx)
|
||||
parent_projects = self.browse(cursor, user, parent_project_ids,
|
||||
context=context)
|
||||
for parent_project in parent_projects:
|
||||
|
||||
Reference in new issue
Block a user