Hello Fabien,

> Ok, I fixed 2 bugs and reuploaded the module:
> * First bug was for unicode chars
> * Second bug when the model pointed by a ressource has not been created by a 
> record of another module (id don't exist) -> it performs a search.
> I reuploaded the bugfixed module.
> 


First I uninstall the module, after this, I downloded the new module from: 
http://www.tinyerp.org/download/modules/base_module_record-4.3.1.0.zip

install, try with german umlauts, unfortunately the module fails with an very 
similar error:


Traceback (most recent call last):
  File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 206, in _dispatch
    r=m(*params)
  File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 422, 
in execute
    return self._execute(db, uid, wiz_id, datas, action, 
context)
  File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 402, 
in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], 
action, context)
  File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 160, in 
execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 75, in 
execute_cr
    action_res = action(self, cr, uid, data, context)
  File 
"/srv/tinyerp-server/bin/addons/base_module_record/wizard/base_module_save.py", 
line 112, in _create_module
    res_xml = mod.generate_xml(cr, uid)
  File 
"/srv/tinyerp-server/bin/addons/base_module_record/base_module_record.py", line 
163, in generate_xml
    res_list,noupdate = self._generate_object_xml(cr, uid, 
rec[1], rec[2], doc, rec[3])
  File 
"/srv/tinyerp-server/bin/addons/base_module_record/base_module_record.py", line 
136, in _generate_object_xml
    record,noupdate = self._create_record(cr, uid, doc, 
rec[3], rec[5], id)
  File 
"/srv/tinyerp-server/bin/addons/base_module_record/base_module_record.py", line 
118, in _create_record
    field.setAttribute("eval", val and 
('"'+str(val).replace('\\','\\\\').replace('"','\"')+'"')
 or 'False' )
UnicodeEncodeError: 'ascii' codec can't encode characters in position 
0-2: ordinal not in range(128)


For debugging some german umlauts for copy and paste: äöüÄÖÜß

Thx. Udo





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to