From ea2d84282eb1d25b6ea81c7a0b102a83610880d7 Mon Sep 17 00:00:00 2001 From: Mathias Behrle Date: Mon, 27 Jan 2025 08:35:30 +0100 Subject: [PATCH] Correct typo: Use limit instead of count. count returns the number of found reports, but we search for the first ActionReport instance. --- xreport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: