// clearable depends on timeaccount is_billable as well (changed by ps / 2009-09-01, behaviour was inconsistent)
notClearable = notClearable || timeaccount.data.is_billable == "0" || timeaccount.get('is_billable') == "0";
}
-
- if (notBillable) {
- this.getForm().findField('is_billable').setValue(false);
- }
-
+
this.getForm().findField('is_billable').setDisabled(notBillable);
this.getForm().findField('is_cleared').setDisabled(notClearable);
-
+
if (this.record.id == 0 && timeaccount) {
// set is_billable for new records according to the timeaccount setting
this.getForm().findField('is_billable').setValue(timeaccount.data.is_billable);