diff options
| author | HDA (OpenERP) <hda@tinyerp.com> | 2009-08-26 12:13:52 +0530 |
|---|---|---|
| committer | HDA (OpenERP) <hda@tinyerp.com> | 2009-08-26 12:13:52 +0530 |
| commit | 08a058190efaef2b9ef1cda15622eaa202e09be6 (patch) | |
| tree | 6e19944eb979afe2bf2abbd1d4b5a2ca6eee9f50 /addons/base_module_record | |
| parent | 84a5a835dffe736ae2f21bc93b9cccf018986b39 (diff) | |
Module:base_module_record removed record duplication in copy for one2many field
bzr revid: hda@tinyerp.com-20090826064352-i65g34dnnh6i0rlg
Diffstat (limited to 'addons/base_module_record')
| -rw-r--r-- | addons/base_module_record/base_module_record.py | 1 | ||||
| -rw-r--r-- | addons/base_module_record/wizard/base_module_save.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/addons/base_module_record/base_module_record.py b/addons/base_module_record/base_module_record.py index b77027bbda2..c5ce478b6fb 100644 --- a/addons/base_module_record/base_module_record.py +++ b/addons/base_module_record/base_module_record.py @@ -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=[] diff --git a/addons/base_module_record/wizard/base_module_save.py b/addons/base_module_record/wizard/base_module_save.py index e3564b611da..026439677a4 100644 --- a/addons/base_module_record/wizard/base_module_save.py +++ b/addons/base_module_record/wizard/base_module_save.py @@ -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 { |
