[FIX][DMS][#378999]Renaming of files fails

bzr revid: hmo@tinyerp.com-20090525061103-5intndaxlhdk3c8l
This commit is contained in:
Harry (Open ERP) 2009-05-25 11:41:03 +05:30
parent a6cbae4899
commit 7e66320fdb
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ class abstracted_fs:
val['partner_id']=dst_basedir.object2.id
else:
obj2=pool.get(dst_basedir.object2._name)
val['partner_id']= obj2.fields_get(cr,uid,['partner_id']) and dst_basedir.object2.partner_id.id or False
val['partner_id']= obj2.fields_get(src.cr, src.uid,['partner_id']) and dst_basedir.object2.partner_id.id or False
elif src.object.res_id:
# I had to do that because writing False to an integer writes 0 instead of NULL
# change if one day we decide to improve osv/fields.py