[6.0] hr_holidays, holidays report per department, accentuated chars in legends
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
When generating the xml code for pdf creation it is concatenating a list of string in place of a string for the legend part (date_xml).
xml='''<?xml version="1.0" encoding="UTF-8" ?>
<report>
%s
%s
%s
%s
</report>
''' % (header_
As a result, accentuated chars are displayed wrongly in ascii. For exemple "é" is displayed "\xe9".
Ex
>>> print "%s %s" % ("1 -> é", [u"2 -> é"],)
1 -> é [u'2 -> \xa9']
Attached is a proposed patch to concatenate the strings of the string list (date_xml) in one string.
Plus, it force strings in unicode to ensure date_xml is not a list of mixed unicode / utf-8 strings.
So the join string method passes.
Best Regards,
Yannick
Related branches
- Raphael Collet (OpenERP) (community): Approve
-
Diff: 19 lines (+2/-1)1 file modifiedhr_holidays/report/holidays_summary_report.py (+2/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
milestone: | none → 6.0.4 |
Hello Yannick,
Thanks for reporting this issue.
It has been fixed into the lp:~openerp-dev/openobject-addons/6.0-opw-17108-skh branch,
Revision ID: <email address hidden>
Revision Number:4827
Thanks