[FIX] stop multiple rpc call of default_get on loading

bzr revid: rgaopenerp-20121122130656-up43bbo5jfzd00t4
This commit is contained in:
RGA(OpenERP)
2012-11-22 18:36:56 +05:30
parent c417900255
commit b71f96fb7f
@@ -14,6 +14,7 @@ openerp.hr_timesheet_sheet = function(instance) {
date_to: false,
date_from: false,
});
this.updating = true;
this.field_manager.on("field_changed:timesheet_ids", this, this.query_sheets);
this.field_manager.on("field_changed:date_from", this, function() {
this.set({"date_from": instance.web.str_to_date(this.field_manager.get_field_value("date_from"))});