summaryrefslogtreecommitdiff
path: root/addons/base_module_doc_rst/wizard/generate_relation_graph.py
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
commit12fcd1be2f1a891b7fe099ad0044e68c45280907 (patch)
treef60c92735fb1f9bde88b4affe5fa513b5e460570 /addons/base_module_doc_rst/wizard/generate_relation_graph.py
parent58e9ba97bbe188438cb67c1f59292f9b4d1de1c5 (diff)
[IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
Diffstat (limited to 'addons/base_module_doc_rst/wizard/generate_relation_graph.py')
-rw-r--r--addons/base_module_doc_rst/wizard/generate_relation_graph.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/base_module_doc_rst/wizard/generate_relation_graph.py b/addons/base_module_doc_rst/wizard/generate_relation_graph.py
index 0d4453b0bcc..a70c8eaa0f7 100644
--- a/addons/base_module_doc_rst/wizard/generate_relation_graph.py
+++ b/addons/base_module_doc_rst/wizard/generate_relation_graph.py
@@ -28,8 +28,9 @@ form_rep = '''<?xml version="1.0"?>
<label colspan="2" string="(Relationship Graphs generated)" align="0.0"/>
</form>'''
-def _get_graph(self, cr, uid, datas, context={}):
+def _get_graph(self, cr, uid, datas, context=None):
mod_obj = pooler.get_pool(cr.dbname).get('ir.module.module')
+ if not context: context = {}
modules = mod_obj.browse(cr, uid, datas['ids'], context=context)
for module in modules:
module_data = mod_obj.get_relation_graph(cr, uid, module.name, context=context)