Merge lp:~openerp-dev/openobject-addons/trunk-bug-944761-amp into lp:openobject-addons
Proposed by
Amit Parik
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 6950 | ||||
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-bug-944761-amp | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
11 lines (+1/-1) 1 file modified
project_gtd/project_gtd.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-944761-amp | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Approve | ||
Amit Parik (community) | Needs Resubmitting | ||
Review via email: mp+100272@code.launchpad.net |
Description of the change
Fixes the unicode problem on my task view which is created from fields_view_get
This view doesn't open in other languages (i.e French,Italian ) without demo data.
This fix will solved this problem.
Thanks!
To post a comment you must log in.
FYI, the fix was applied in 6.1 at revision 6767. But I don't think it was a good idea to hardcode unicode('utf-8').
The safer way to accomplish this is to use tools.ustr() which will behave properly in case the parameter is already unicode. It could happen if someone else inherits fields_view_get and converts res['arch'] to unicode upstream, for instance. This is our standard technique to coerce anything to unicode.
Thanks!