[product_images] uploading an images with an accentuated name -> UnicodeEncodeError: 'ascii' codec can't encode character
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Product Attributes |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
on rev trunk #207
For instance uploading an images named réception.png will result in such stack trace:
Server Traceback (most recent call last):
File "/home/
return openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return super(product_
File "/home/
vals, context=context)
File "/home/
result = super(mail_thread, self).write(cr, uid, ids, values, context=context)
File "/home/
result += self._columns[
File "/home/
id_new = obj.create(cr, user, act[2], context=context)
File "/home/
return super(product_
File "/home/
result += self._columns[
File "/home/
self.
File "/home/
return self._save_
File "/home/
with open(path, 'w') as ofile:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 61: ordinal not in range(128)
branch with the fix coming right now ;-)
Related branches
- Guewen Baconnier @ Camptocamp: Needs Information
- Joao Alfredo Gama Batista: Needs Information
-
Diff: 12 lines (+1/-1)1 file modifiedproduct_images/product_images.py (+1/-1)
I couldn't reproduce this bug with the given information.