diff --git a/bin/report/interface.py b/bin/report/interface.py index 8b303e473aa..57e42a8f7d5 100644 --- a/bin/report/interface.py +++ b/bin/report/interface.py @@ -212,7 +212,7 @@ from report_sxw import report_sxw def register_all(db): opj = os.path.join cr = db.cursor() - cr.execute("SELECT * FROM ir_act_report_xml WHERE auto ORDER BY id") + cr.execute("SELECT * FROM ir_act_report_xml WHERE auto=%s ORDER BY id", (True,)) result = cr.dictfetchall() cr.close() for r in result: