[REF] report_webkit: removed register_all() method:

It was wrong: only the auto=True reports should have been registered
by that method to respect the framework behavior.

And those auto=True reports should not be registered anymore:
the framework will always look them up in the database.

bzr revid: vmt@openerp.com-20130322152356-n66b7igi68pv78ip
This commit is contained in:
Vo Minh Thu
2013-03-22 16:23:56 +01:00
parent 8ea6553948
commit 36d25e4d78
-8
View File
@@ -51,14 +51,6 @@ def register_report(name, model, tmpl_path, parser=rml_parse):
class ReportXML(osv.osv):
def register_all(self,cursor):
value = super(ReportXML, self).register_all(cursor)
cursor.execute("SELECT * FROM ir_act_report_xml WHERE report_type = 'webkit'")
records = cursor.dictfetchall()
for record in records:
register_report(record['report_name'], record['model'], record['report_rml'])
return value
def unlink(self, cursor, user, ids, context=None):
"""Delete report and unregister it"""
trans_obj = self.pool.get('ir.translation')