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