Comment 16 for bug 495948

Revision history for this message
Matjaž Godec (matjaz-godec) wrote :

Hello,

Just checked out latest openerp-client.
Most important patch (date related) is still not included.

Please test:
export LANG=sl_SI; openerp-client
Go to any date field (e.g. Fiscal Year).
On save You still get red and empty date fields.

Im attaching proper fix again in file openerp-client.diff.gz

Problem iz in bin/widget/view/form_gtk/calendar.py, where OpenERP makes assumption of date field length, which is completly wrong since one can't know for each locale how date is represented:

- date1 = DT.strptime(str[:10], self.format)
+ date1 = DT.strptime(str, self.format)

Please, please add this fix before release 5.0.7 because without it OpenERP is useless for all who has locale date representation longer than 10 digits.