Document: fix creating of node_res_obj without data .
bzr revid: p_christ@hol.gr-20100702215058-5h49fw2dzox3022h
This commit is contained in:
parent
dce6c87084
commit
3f4c75919c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue