[FIX]Fixed problem of date picker.

lp bug: https://launchpad.net/bugs/1026702 fixed

bzr revid: amb@tinyerp.com-20120723135620-67qunqvnyz0lj00e
This commit is contained in:
Amit Bhavsar (Open ERP) 2012-07-23 19:26:20 +05:30
parent c53deab987
commit b5c626f6a2
1 changed files with 2 additions and 1 deletions

View File

@ -2097,7 +2097,8 @@ instance.web.DateTimeWidget = instance.web.OldWidget.extend({
changeMonth: true,
changeYear: true,
showWeek: true,
showButtonPanel: true
showButtonPanel: true,
firstDay: Date.CultureInfo.firstDayOfWeek
});
this.$element.find('img.oe_datepicker_trigger').click(function() {
if (self.get("effective_readonly") || self.picker('widget').is(':visible')) {