[IMP] Dates widget not really disabled (was still possible to use the icon in order to change date)

bzr revid: fme@openerp.com-20110711095039-v22g7ce3u0h9jhbp
This commit is contained in:
Fabien Meghazi
2011-07-11 11:50:39 +02:00
parent f5b9ad4873
commit 91878db598
+1 -1
View File
@@ -969,7 +969,7 @@ openerp.base.form.FieldDatetime = openerp.base.form.Field.extend({
},
update_dom: function() {
this._super.apply(this, arguments);
this.$element.find('input').attr('disabled', this.readonly);
this.$element.find('input').datepicker(this.readonly ? 'disable' : 'enable');
},
validate: function() {
this.invalid = false;