Merge branch 'main' into 5.0

This commit is contained in:
Frederik Jaeckel 2025-01-28 11:16:06 +01:00
commit bdcc618d5e

View file

@ -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: