Fix inherit view with position after
This commit is contained in:
+2
-2
@@ -1961,10 +1961,10 @@ class ORM(object):
|
||||
elif pos == 'after':
|
||||
parent = element.getparent()
|
||||
next = element.getnext()
|
||||
if next:
|
||||
if next is not None:
|
||||
for child in element2:
|
||||
index = parent.index(next)
|
||||
parent.insert(index - 1, child)
|
||||
parent.insert(index, child)
|
||||
else:
|
||||
parent.extend(element2.getchildren())
|
||||
elif pos == 'before':
|
||||
|
||||
Reference in New Issue
Block a user