[IMP] default_xx in context isuue

bzr revid: jvo@tinyerp.com-20090619052625-2piyajyryvxwnkej
This commit is contained in:
Jay (Open ERP) 2009-06-19 10:56:25 +05:30
parent 51dd8dff0e
commit 50badb81dd
1 changed files with 2 additions and 2 deletions

View File

@ -2285,7 +2285,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]]
@ -2493,7 +2493,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]]