Import translation file doesn't opening form, reports error

Bug #598132 reported by Goran Cvijanović on 2010-06-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Undecided
Unassigned

Bug Description

[Post 5.0.11 updates][server 2079, web_client 2876]

When selecting "Import a Translation File" in Administration/Tralslations/Import / Export
raise an error since newest shanges in stable branch.

error lines:
--------------
 /usr/lib/python2.5/site-packages/openerp_web-5.0.11-py2.5.egg/openerp/widgets/form.py in parse(self=Form, prefix='', root=<DOM Element: group at 0x914ee0c>, fields={'code': {'context': {}, 'editable': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'code', 'prefix': '', 'required': True, 'size': 5, 'state': None, 'string': u'Code (eg:en__US)', ...}, 'data': {'colspan': u'4', 'context': {}, 'editable': True, 'is_wizard': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'data', 'prefix': '', 'required': True, 'state': None, ...}, 'name': {'context': {}, 'editable': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'name', 'prefix': '', 'required': True, 'size': 64, 'state': None, 'string': u'Language name', ...}}, values={})
  835 self.view_fields.append(name)
  836
  837 field = self._make_field_widget(fields[name], values.get(name))
  838 views += [field]
  839
field = Char, self = Form, self._make_field_widget = <bound method Form._make_field_widget of Form>, fields = {'code': {'context': {}, 'editable': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'code', 'prefix': '', 'required': True, 'size': 5, 'state': None, 'string': u'Code (eg:en__US)', ...}, 'data': {'colspan': u'4', 'context': {}, 'editable': True, 'is_wizard': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'data', 'prefix': '', 'required': True, 'state': None, ...}, 'name': {'context': {}, 'editable': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'name', 'prefix': '', 'required': True, 'size': 64, 'state': None, 'string': u'Language name', ...}}, name = u'data', values = {}, values.get = <built-in method get of dict object at 0x90398ac>
 /usr/lib/python2.5/site-packages/openerp_web-5.0.11-py2.5.egg/openerp/widgets/form.py in _make_field_widget(self=Form, attrs={'colspan': u'4', 'context': {}, 'editable': True, 'is_wizard': True, 'link': 1, 'model': u'wizard.module.lang.import', 'name': u'data', 'prefix': '', 'required': True, 'state': None, ...}, value=None)
  892
  893 if isinstance(field, TinyInputWidget):
  894 field.set_value(value)
  895
  896 # update the record data
field = Binary, field.set_value = <bound method Binary.set_value of Binary>, value = None
 /usr/lib/python2.5/site-packages/openerp_web-5.0.11-py2.5.egg/openerp/widgets/binary.py in set_value(self=Binary, value=None)
   57 def set_value(self, value):
   58 if self.is_wizard:
   59 self.text = tools.get_size(len(value))
   60 else:
   61 self.text = value or ''
self = Binary, self.text = None, global tools = <module 'openerp.tools' from '/usr/lib/python2.5...web-5.0.11-py2.5.egg/openerp/tools/__init__.pyc'>, tools.get_size = <function get_size at 0x852f64c>, builtin len = <built-in function len>, value = None

<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()
      args = ("object of type 'NoneType' has no len()",)
      message = "object of type 'NoneType' has no len()"

Related branches

Navrang Oza (noz-tiny) on 2010-06-25
Changed in openobject-client-web:
status: New → Confirmed
Navrang Oza (noz-tiny) wrote :

Hello goranc,

Bug has been fixed in stable with Revision : 2878
<email address hidden>

Thanks.

Navrang Oza (noz-tiny) wrote :

Hello,

Bug has been fixed in stable with Revision : 2878
<email address hidden>

Thanks.

Changed in openobject-client-web:
milestone: none → 5.0.10
Navrang Oza (noz-tiny) on 2010-06-25
Changed in openobject-client-web:
status: Confirmed → Fix Released
milestone: 5.0.10 → 5.0.11
Navrang Oza (noz-tiny) on 2010-06-25
Changed in openobject-client-web:
milestone: 5.0.11 → 5.0.12
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers