diff --git a/tailbone_corepos/views/corepos/superdepartments.py b/tailbone_corepos/views/corepos/superdepartments.py index 6d0aeaf..e5a2689 100644 --- a/tailbone_corepos/views/corepos/superdepartments.py +++ b/tailbone_corepos/views/corepos/superdepartments.py @@ -125,7 +125,7 @@ class SuperDepartmentView(base.DepartmentView): return query def get_parent(self, child): - return child._super_parent.parent + return child._super_parents[0].parent def configure_row_grid(self, g): super(SuperDepartmentView, self).configure_row_grid(g)