Document: fix creating of node_res_obj without data .

bzr revid: p_christ@hol.gr-20100702215058-5h49fw2dzox3022h
This commit is contained in:
Harry (OpenERP) 2010-07-03 00:50:58 +03:00 committed by P. Christeas
parent dce6c87084
commit 3f4c75919c
1 changed files with 2 additions and 1 deletions

View File

@ -820,7 +820,8 @@ class node_res_obj(node_class):
fil_id = fil_obj.create(cr, uid, val, context=ctx)
fil = fil_obj.browse(cr, uid, fil_id, context=ctx)
fnode = node_file(path, self, self.context, fil)
fnode.set_data(cr, data, fil)
if data is not None:
fnode.set_data(cr, data, fil)
return fnode
def _get_ttag(self,cr):