From d06955421c445d0eee2df545fc650a503e5d18c7 Mon Sep 17 00:00:00 2001 From: Laurent Defert Date: Tue, 18 Dec 2012 15:40:33 +0100 Subject: [PATCH] Remove deprecated reports initialization Remove code that used to initialize reports with undefined classes. This initialization is done from Pool.get() method instead. issue2933 review611004 --- trytond/modules/__init__.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/trytond/modules/__init__.py b/trytond/modules/__init__.py index 0df44940c5..b9bdd948ed 100644 --- a/trytond/modules/__init__.py +++ b/trytond/modules/__init__.py @@ -269,21 +269,6 @@ def load_module_graph(graph, pool, lang=None): cursor.commit() - # Create missing reports - from trytond.report import Report - ActionReport = pool.get('ir.action.report') - reports = ActionReport.search([ - ('module', '=', module), - ]) - report_names = pool.object_name_list(type='report') - for report in reports: - report_name = report.report_name - if report_name not in report_names: - report = object.__new__(Report) - report.__name__ = report_name - pool.add(report, type='report') - report.__init__() - for model_name in models_to_update_history: model = pool.get(model_name) if model._history: