[FIX] Fixed on_record_loaded.
bzr revid: vta@openerp.com-20121010100218-drvx420qtrjucom1
This commit is contained in:
parent
5645a84a16
commit
31760fd249
|
@ -25,7 +25,7 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
|
|||
}).bind('sortstop', self.do_save_dashboard);
|
||||
|
||||
var old_title = this.__parentedParent.get('title');
|
||||
this.__parentedParent.on('record_load', this, function(){
|
||||
this.__parentedParent.on('load_record', self, function(){
|
||||
self.__parentedParent.set({ 'title': old_title});
|
||||
})
|
||||
// Events
|
||||
|
@ -173,7 +173,7 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
|
|||
},
|
||||
on_load_action: function(result, index, action_attrs) {
|
||||
var self = this,
|
||||
action = result.result,
|
||||
action = result,
|
||||
view_mode = action_attrs.view_mode;
|
||||
|
||||
if (action_attrs.context && action_attrs.context['dashboard_merge_domains_contexts'] === false) {
|
||||
|
|
Loading…
Reference in New Issue