Vishmita Jadeja (openerp) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-1002343-vja into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #1002343 in OpenERP Web: "date widget must store the selected date 
immediately"
  https://bugs.launchpad.net/openerp-web/+bug/1002343

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1002343-vja/+merge/107580

when we open datepicker and then press done button without selecting a day it 
doesn't return current date.So I have fix this issue by pass the current date 
in onClose datepicker event.

-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1002343-vja/+merge/107580
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-1002343-vja.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-05-25 19:22:08 +0000
+++ addons/web/static/src/js/view_form.js	2012-05-28 04:59:19 +0000
@@ -1968,6 +1968,7 @@
         this.$input_picker = this.$element.find('input.oe_datepicker_container');
         this.$input.change(this.on_change);
         this.picker({
+            onClose: this.on_picker_select,
             onSelect: this.on_picker_select,
             changeMonth: true,
             changeYear: true,

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to