From 48d1bce6ec4fd77a98923b7132e718b33cafadd8 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Fri, 22 Feb 2013 16:13:11 +0100 Subject: [PATCH] [IMP] report: remove the print statement upon report registration. bzr revid: vmt@openerp.com-20130222151311-xz609m3o5jazo7ld --- openerp/report/interface.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openerp/report/interface.py b/openerp/report/interface.py index 6c5fc24b559..d6d90b17d42 100644 --- a/openerp/report/interface.py +++ b/openerp/report/interface.py @@ -45,10 +45,8 @@ class report_int(object): def __init__(self, name, register=True): if register: - print "*** Registering report `%s` but it should be registered trough data declaration instead. ***" % name - if not name.startswith('report.'): - raise Exception('ConceptionError, bad report name, should start with "report."') - assert name not in self._reports, 'The report "%s" already exists!' % name + assert name.startswith('report.'), 'Report names should start with "report.".' + assert name not in self._reports, 'The report "%s" already exists.' % name self._reports[name] = self else: # The report is instanciated at each use site, which is ok.