module recorder broken on trunk: 'ascii' codec can't decode byte 0xc3

Bug #272127 reported by Raphaël Valyi - http://www.akretion.com
2
Affects Status Importance Assigned to Milestone
OpenERP
Fix Released
Undecided
Unassigned

Bug Description

Hi,
looks like the base_module_recorder is broken on trunk, everything looks all right untill you try to save the recorded stuff and then you get the following stack trace:

Traceback (most recent call last):
  File "/opt/openerp/openobject-server/bin/netsvc.py", line 384, in run
    r = m(*msg[2:])
  File "/opt/openerp/openobject-server/bin/service/web_services.py", line 438, in
execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/opt/openerp/openobject-server/bin/service/web_services.py", line 418, in
_execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/opt/openerp/openobject-server/bin/wizard/__init__.py", line 172, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/opt/openerp/openobject-server/bin/wizard/__init__.py", line 80, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/opt/openerp/openobject-addons/base_module_record/wizard/base_module_save.py",
line 113, in _create_module
    res_xml = mod.generate_xml(cr, uid)
  File "/opt/openerp/openobject-addons/base_module_record/base_module_record.py",
line 202, in generate_xml
    res = doc.toprettyxml(indent="\t")
  File "/usr/lib/python2.5/site-packages/oldxml/_xmlplus/dom/minidom.py", line 62,
in toprettyxml
    return writer.getvalue()
  File "/usr/lib/python2.5/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not
in range(128)

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Seems to be OK on trunk now, thanks for the fix but please look at the reports and try to cross link bug reports and commits

Changed in openerp:
status: New → Fix Committed
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hi, sorry, but the bug is actually still here on trunk at least. Try to use the create a new partner dans save it using the module recorder and you'll get that kind of error for instance. Nevertheless, its seems there exist some kind of object working more or less with the module recorder, that's why I got misleaded, for instance saving a new stock location might produce some module with some XML but it doesn't seem it will then install properly.

Any thought?

Raphaël Valyi
Smile.fr

Changed in openerp:
status: Fix Committed → Confirmed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

fixed in trunk.

Changed in openerp:
status: Confirmed → Fix Released
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Okay, that one specifically seems to be fixed, but the report designer doesn't seem to work very well on trunk either:
try to record some stock locations linked together for instance, they will not get created then when you install the module. Anyway closing that one as it's a different bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.