[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user