[FIX] adding menu

bzr revid: fp@tinyerp.com-20140125151454-g4xsi25g3re2arwo
This commit is contained in:
Fabien Pinckaers 2014-01-25 16:14:54 +01:00
parent 6e11e3f6ce
commit 1c1b17451d
1 changed files with 1 additions and 1 deletions

View File

@ -3863,7 +3863,7 @@ class BaseModel(object):
for (parent_pright, parent_id) in parents:
if parent_id == id:
break
position = parent_pright + 1
position = parent_pright and parent_pright + 1 or 1
# It's the first node of the parent
if not position: