From 4c986c71dec2543acd6b7a37238b810283841542 Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 22 Dec 2011 09:36:15 +0100 Subject: [CLEAN] cleaning code bzr revid: mva@openerp.com-20111222083615-ot0yvp9ki3ckpvgd --- addons/plugin/plugin_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/plugin/plugin_handler.py') diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py index 3c322b67bf4..f8f41bd8f16 100644 --- a/addons/plugin/plugin_handler.py +++ b/addons/plugin/plugin_handler.py @@ -53,7 +53,7 @@ class plugin_handler(osv.osv_memory): res_id = msg.res_id model = msg.model url = self._make_url(cr, uid, res_id, model) - name = self.pool.get(model).name_get(cr, uid, res_id)[0][1] + name = self.pool.get(model).name_get(cr, uid, [res_id])[0][1] return (model,res_id, url,name) -- cgit v1.2.3