diff --git a/xreport.py b/xreport.py index d104558..88d58f6 100644 --- a/xreport.py +++ b/xreport.py @@ -105,7 +105,7 @@ class XReport(Report): # no report defined, use 1st found act_report = ActionReport.search([ ('model', '=', 'account.invoice'), - ('extension', '=', 'pdf')], count=1) + ('extension', '=', 'pdf')], limit=1) if act_report: act_report = act_report[0] if not act_report: