← Back to team overview

openerp-india team mailing list archive

[Bug 1217794] [NEW] HR Holidays(Summary Department) Report crash with some locale

 

Public bug reported:

In method create_xml of class report_custom
(hr_holidays/report/holidays_summary_report.py), the call of
som.strftime('%B') will return 'août' in a utf-8 string if your system
locale is FR.UTF8. This will generate a crash on the date_xml =
''.join(date_xml) instruction, which operate on ACSII string !

This bug causes an error in yaml test for some locale and some month of
the year. %B return the full month name in system locale, which is UTF8
by default on linux systems.

Environment to reproduce:

System: Ubuntu 12.04 LTS
System locale :  fr_CH.UTF-8
OpenERP : 7.0 launchpad serie (server revision 5058 / addons revision 9386 / web revision 4020)

tests run with  : server/openerp-server --addons-path=addons,web/addons
-d ***** --db_user=***** --db_password=***** --db_host=localhost
--db_port=5432 -u hr_holidays --log-level=test --test-enable

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Attachment added: "Log of the error in test run"
   https://bugs.launchpad.net/bugs/1217794/+attachment/3791379/+files/hr_report_crash.log

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1217794

Title:
  HR Holidays(Summary Department) Report crash with some locale

Status in OpenERP Addons (modules):
  New

Bug description:
  In method create_xml of class report_custom
  (hr_holidays/report/holidays_summary_report.py), the call of
  som.strftime('%B') will return 'août' in a utf-8 string if your system
  locale is FR.UTF8. This will generate a crash on the date_xml =
  ''.join(date_xml) instruction, which operate on ACSII string !

  This bug causes an error in yaml test for some locale and some month
  of the year. %B return the full month name in system locale, which is
  UTF8 by default on linux systems.

  Environment to reproduce:

  System: Ubuntu 12.04 LTS
  System locale :  fr_CH.UTF-8
  OpenERP : 7.0 launchpad serie (server revision 5058 / addons revision 9386 / web revision 4020)

  tests run with  : server/openerp-server --addons-
  path=addons,web/addons -d ***** --db_user=***** --db_password=*****
  --db_host=localhost --db_port=5432 -u hr_holidays --log-level=test
  --test-enable

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1217794/+subscriptions


Follow ups

References