The calendar widget will reject value entry when the locale date format is not 'Standard'
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D |
Bug Description
The problem stems from the modification of code on rev. 990.1.6
Slicing the date string to fix the length of the date doesn't sound right here, because the separator in date format may not be one byte in length for many locales. For instance, the separator could be of several characters or one character extends several bytes in string. In my case, the Chinese date-time format is like: _年_月_日 _时_分_秒, every Chinese character in the format will extend 3 or more bytes in byte string.
Also, the same assumption of the 'Standard' date time format in whole code base causes many other problems, for example print the report with locale date format. I will report again when I encounter specific problem.
Tony Gu
Related branches
Changed in openobject-client: | |
assignee: | nobody → Olivier Dony (OpenERP) (odo) |
Changed in openobject-client: | |
assignee: | Olivier Dony (OpenERP) (odo) → Jay (Open ERP) (jvo-openerp) |
Changed in openobject-client: | |
status: | New → Confirmed |
Changed in openobject-client: | |
milestone: | none → 5.0.8 |
Changed in openobject-client: | |
assignee: | Jay (Open ERP) (jvo-openerp) → Olivier Dony (OpenERP) (odo) |
Changed in openobject-client: | |
milestone: | 5.0.8 → 5.0.9 |
Changed in openobject-client: | |
milestone: | 5.0.9 → 5.0.10 |
Changed in openobject-client: | |
milestone: | 5.0.10 → 5.0.11 |
Changed in openobject-client: | |
milestone: | 5.0.11 → 5.0.12 |
Changed in openobject-client: | |
milestone: | 5.0.12 → 5.0.13 |
Changed in openobject-client: | |
assignee: | Olivier Dony (OpenERP) (odo) → OpenERP sa GTK client R&D (openerp-dev-gtk) |
This one does not seem to be a regression due to my bugfix for bug 389544, but rather an old regression due to rev 990.1.6>996, and introduced by the "fix" for bug 434068.
@Tiny: could you provide some steps to reproduce this on a "Western- configured" system, such as where you modified the date-time format etc. Could you also elaborate on the 'Standard' date time format issue? For example it is specifically the case in reports that date-times are formatted using the date format specified on the language object (e.g. usually the partner's one).
@Jay: as you originally checked in rev. 990.1.6 for bug 434068, could you review this one? Thanks!