Comment 1 for bug 1060564

Revision history for this message
Florent (florent.x) wrote :

The workaround is to add this snippet to the javascript part of a custom addon, until it is fixed upstream :

Date.parseExact = function(s, fx) {
    fx = fx.replace(/dd(.)MM/, 'd$1M');
    return Date.getParseFunction(fx)(s);
};

Tested on OpenERP 6.1 with French format (dd/MM/yyy) and Swiss format (dd.MM.yyyy).