Module:base_module_record removed record duplication in copy for one2many field
bzr revid: hda@tinyerp.com-20090826064352-i65g34dnnh6i0rlg
This commit is contained in:
parent
84a5a835df
commit
08a058190e
|
@ -205,6 +205,7 @@ class base_module_record(osv.osv):
|
|||
result[key]=data[key][0]
|
||||
|
||||
elif mod_fields[key]['type'] in ('one2many',):
|
||||
continue # due to this start stop recording will not record one2many field
|
||||
rel = mod_fields[key]['relation']
|
||||
if len(data[key]):
|
||||
res1=[]
|
||||
|
|
|
@ -144,6 +144,8 @@ def _create_module(self, cr, uid, data, context):
|
|||
info = zipfile.ZipInfo(dname+'/'+name)
|
||||
info.compress_type = zipfile.ZIP_DEFLATED
|
||||
info.external_attr = 2175008768
|
||||
if not datastr:
|
||||
datastr = ''
|
||||
zip.writestr(info, datastr)
|
||||
zip.close()
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue