[FIX] orm: preserve elements order when inheriting views, also after a leaf element

lp bug: https://launchpad.net/bugs/686275 fixed

bzr revid: odo@openerp.com-20101211012104-gt1cg3z1ec91mg34
This commit is contained in:
Olivier Dony 2010-12-11 02:21:04 +01:00
parent 4b6f70ec5a
commit 83115a45af
1 changed files with 1 additions and 0 deletions

View File

@ -1643,6 +1643,7 @@ class orm_template(object):
elif pos == 'after':
if sib is None:
node.addnext(child)
node = child
else:
sib.addprevious(child)
elif pos == 'before':