[FIX] stop multiple rpc call of default_get on loading
bzr revid: rgaopenerp-20121122130656-up43bbo5jfzd00t4
This commit is contained in:
@@ -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"))});
|
||||
|
||||
Reference in New Issue
Block a user