[7.0][base_rml_edit] Decode issue on save

Bug #1311618 reported by Yajo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cubicerp-addons
New
Undecided
Unassigned

Bug Description

Trying to edit the default Quotation RML content, just add a space there and save, and you get this error:

ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4255, in write
    result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
  File "/usr/lib/pymodules/python2.7/openerp/osv/fields.py", line 1159, in set
    self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
  File "/opt/openerp-community-repo-installer/addons/base_rml_edit/ir_actions.py", line 38, in _report_content_txt_inv
    self.write(cr,uid,id,{'report_rml_content':str(value)},context=context)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 9427: ordinal not in range(128)

Related branches

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.