project_gtd can't display "My Tasks" in non-ascii languages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Step to reproduce from scratch:
1 - create a new database with "french" as default language
2 - install module project_gtd
3 - try to access Projects/My Task view
I'm using rev corresponding to 6.1 tag.
I'm providing a video to show the bug.
Here is the exception I get:
Traceback (most recent call last):
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/
res['arch'] = res['arch'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
DIAGNOSTIC
In the failing line:
res['arch'] = res['arch'
"res['arch']" is encoded in utf-8, but "search_extended" is unicode. In english language, this is not a problem as "res['arch']" can be decoded from utf-8 to unicode using the "ascii" codec. This is not the case for french language, if it uses accentuated characters, which is the case here with the word: "Tâche" for example.
Related branches
- Olivier Dony (Odoo): Needs Fixing
- Valentin Lab (community): Needs Resubmitting
- Amit Parik (community): Disapprove
-
Diff: 30 lines (+9/-2)1 file modifiedproject_gtd/project_gtd.py (+9/-2)
The video seems to have disappeared for some reason. Here it is.