[FIX] adding menu
bzr revid: fp@tinyerp.com-20140125151454-g4xsi25g3re2arwo
This commit is contained in:
parent
6e11e3f6ce
commit
1c1b17451d
|
@ -3863,7 +3863,7 @@ class BaseModel(object):
|
||||||
for (parent_pright, parent_id) in parents:
|
for (parent_pright, parent_id) in parents:
|
||||||
if parent_id == id:
|
if parent_id == id:
|
||||||
break
|
break
|
||||||
position = parent_pright + 1
|
position = parent_pright and parent_pright + 1 or 1
|
||||||
|
|
||||||
# It's the first node of the parent
|
# It's the first node of the parent
|
||||||
if not position:
|
if not position:
|
||||||
|
|
Loading…
Reference in New Issue