[IMP]replace add* method.
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 9 Oct 2012 12:49:08 +0000 (18:19 +0530)
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 9 Oct 2012 12:49:08 +0000 (18:19 +0530)
bzr revid: vme@tinyerp.com-20121009124908-r33qqpx15ea39p78

addons/board/static/src/js/dashboard.js

index 43d7ca7..bba076e 100644 (file)
@@ -25,9 +25,9 @@ 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_loaded.add_last(function(){
+        this.__parentedParent.on('record_load', this, function(){
             self.__parentedParent.set({ 'title' : old_title});
-        });
+        })
         // Events
         this.$el.find('.oe_dashboard_link_reset').click(this.on_reset);
         this.$el.find('.oe_dashboard_link_change_layout').click(this.on_change_layout);