From 2762ef8c8137019dc8feb69b3059db6c2dd4bc53 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 9 Feb 2012 11:12:26 +0100 Subject: [PATCH] [FIX] revert an incorrect change in rev 6380 bzr revid: rco@openerp.com-20120209101226-fyv20u7tb4o7lk5f --- addons/base_module_doc_rst/report/report_proximity_graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/base_module_doc_rst/report/report_proximity_graph.py b/addons/base_module_doc_rst/report/report_proximity_graph.py index 24b45ca7a8e..434ecf46b6d 100644 --- a/addons/base_module_doc_rst/report/report_proximity_graph.py +++ b/addons/base_module_doc_rst/report/report_proximity_graph.py @@ -21,8 +21,7 @@ import time, os import pydot -import report -import tools +import report,pooler,tools class report_graph(report.interface.report_int): def __init__(self, name, table): @@ -30,7 +29,8 @@ class report_graph(report.interface.report_int): self.table = table def get_proximity_graph(self, cr, uid, module_id, context=None): - module_obj = self.pool.get('ir.module.module') + pool_obj = pooler.get_pool(cr.dbname) + module_obj = pool_obj.get('ir.module.module') nodes = [('base','unknown')] edges = [] def get_depend_module(module_id):