From 59372f5a2b43fe1b5d8ee6ff0a56c8205b63756a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Feb 2009 14:39:18 +0100 Subject: [PATCH] Look for all report names before creating missing reports for issue776 --- trytond/modules/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/modules/__init__.py b/trytond/modules/__init__.py index c01c47f070..322f8a72d0 100644 --- a/trytond/modules/__init__.py +++ b/trytond/modules/__init__.py @@ -265,7 +265,7 @@ def load_module_graph(cursor, graph, pool, lang=None): report_ids = report_obj.search(cursor, 0, [ ('module', '=', module), ]) - report_names = [x._name for x in objects['report']] + report_names = pool.object_name_list(type='report') for report in report_obj.browse(cursor, 0, report_ids): report_name = report.report_name if report_name not in report_names: