[FIX] dashboard should go through full action resolution via the ActionManager, as...
authorXavier Morel <xmo@openerp.com>
Thu, 30 Jun 2011 12:15:34 +0000 (14:15 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 30 Jun 2011 12:15:34 +0000 (14:15 +0200)
bzr revid: xmo@openerp.com-20110630121534-ay6g9f207snfelca

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

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