bzr revid: fp@tinyerp.com-20090622055307-rubsi0gkqhorxgzh
This commit is contained in:
Fabien Pinckaers
2009-06-22 07:53:07 +02:00
+2 -2
View File
@@ -2287,7 +2287,7 @@ class orm(orm_template):
upd_todo.sort(lambda x, y: self._columns[x].priority-self._columns[y].priority)
# default element in context must be remove when call a one2many or many2many
rel_context = context
rel_context = context.copy()
for c in context.items():
if c[0].startswith('default_'):
del rel_context[c[0]]
@@ -2495,7 +2495,7 @@ class orm(orm_template):
cr.execute('update '+self._table+' set parent_left=%s,parent_right=%s where id=%s', (pleft+1,pleft+2,id_new))
# default element in context must be remove when call a one2many or many2many
rel_context = context
rel_context = context.copy()
for c in context.items():
if c[0].startswith('default_'):
del rel_context[c[0]]