[FIX] Calendar view reloads event using toStringed id
bzr revid: fme@openerp.com-20121218151657-ly74ph77q1c7nicz
This commit is contained in:
@@ -465,12 +465,12 @@ instance.web_calendar.CalendarView = instance.web.View.extend({
|
||||
});
|
||||
} else {
|
||||
var pop = new instance.web.form.FormOpenPopup(this);
|
||||
var id_for_buggy_addons = this.dataset.ids[index]; // ids could be non numeric
|
||||
pop.show_element(this.dataset.model, id_for_buggy_addons, this.dataset.get_context(), {
|
||||
var id_from_dataset = this.dataset.ids[index]; // dhtmlx scheduler loses id's type
|
||||
pop.show_element(this.dataset.model, id_from_dataset, this.dataset.get_context(), {
|
||||
title: _t("Edit: ") + this.name
|
||||
});
|
||||
pop.on('write_completed', self, function(){
|
||||
self.reload_event(event_id);
|
||||
self.reload_event(id_from_dataset);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user