← Back to team overview

openerp-india team mailing list archive

[Bug 1082902] Re: [trunk]date format error when print report in Chinese

 

Hello Joshua,

I have checked this issue at my end, but I didn't face any issue at my
end with Chinese name on report.

Would you please provide more information on this like......."which report you have printed??" ....
"Which accented char you have used..??"

Or you can provide the proper steps to reproduced it.

Thanks and waiting for your reply!!

** Changed in: openobject-server
       Status: New => Incomplete

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

Title:
  [trunk]date format error  when print report in Chinese

Status in OpenERP Server:
  Incomplete

Bug description:
  Hello guys,
       When I try to print the report in Chinese I get this error

  2012-11-25 15:05:17,948 26672 ERROR ? openerp.tools.safe_eval: Cannot eval 'formatLang(o.date_order,date = True)'
  Traceback (most recent call last):
    File "/home/joshua/oe/server/openobject-server/openerp/tools/safe_eval.py", line 242, in safe_eval
      return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/home/joshua/oe/server/openobject-server/openerp/report/report_sxw.py", line 291, in formatLang
      if not str(value):
    File "/home/joshua/oe/server/openobject-server/openerp/report/report_sxw.py", line 111, in __str__
      return date.strftime(str(self.lang_obj.date_format))
  UnicodeEncodeError: 'ascii' codec can't encode character u'\u5e74' in position 2: ordinal not in range(128)

  
  Best Regards
  Joshua

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


References