[IMP] Dashboard: do not instantiate ActionManager, use ViewManagerAction instead
authorFabien Meghazi <fme@openerp.com>
Wed, 13 Jul 2011 10:35:00 +0000 (12:35 +0200)
committerFabien Meghazi <fme@openerp.com>
Wed, 13 Jul 2011 10:35:00 +0000 (12:35 +0200)
bzr revid: fme@openerp.com-20110713103500-v5w0lnskfj1w3r5x

addons/base_dashboard/static/src/js/dashboard.js

index fe52f1a..1e0a8d2 100644 (file)
@@ -226,9 +226,8 @@ openerp.base.form.DashBoard = openerp.base.form.Widget.extend({
             action_buttons : false,
             pager: false
         };
-        new openerp.base.ActionManager(
-                this.session, this.view.element_id + '_action_' + action.id)
-            .do_action(action);
+        new openerp.base.ViewManagerAction(this.session,
+            this.view.element_id + '_action_' + action.id, action).start();
     },
     render: function() {
         // We should start with three columns available