[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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user