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/wizard | |
| 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/wizard')
| -rw-r--r-- | addons/base_module_record/wizard/base_module_save.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |
