diff options
| author | P. Christeas <p_christ@hol.gr> | 2008-11-15 10:58:54 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2008-11-15 10:58:54 +0200 |
| commit | ee881fa7e05fc0bb7b7de37579f8f23a50dc8f9e (patch) | |
| tree | 13dec7b04a249cd8c4bffff9b40f32b831834b1b /bin/addons/base/module/wizard/wizard_export_lang.py | |
| parent | 8220e0ad02c27bbcdae91a0a04aa7e0d1cf72cef (diff) | |
Armor the export lang wizard against faulty model fields.
Sometimes objects or field definitions in db may have some errors
(especially in dev setups). The export translation algorithm should
just skip those fields and try to continue, instead of raising an
exception. These errors can still be logged, of course.
bzr revid: p_christ@hol.gr-20081115085854-2xpnypbas4sxt15u
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_export_lang.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_export_lang.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py index 2e9751e55e5..c6ce9f75e19 100644 --- a/bin/addons/base/module/wizard/wizard_export_lang.py +++ b/bin/addons/base/module/wizard/wizard_export_lang.py @@ -81,7 +81,8 @@ class wizard_export_lang(osv.osv_memory): ('get','get'), # get the file ) ), } - _defaults = { 'state': lambda *a: 'choose', + _defaults = { 'state': lambda *a: 'choose', + 'name': lambda *a: 'lang.tar.gz' } wizard_export_lang() |
