Skip to content

Commit

Permalink
Skip printing if no reports are printable
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg authored and jans23 committed Jul 31, 2024
1 parent 2f2b58d commit 5b7b1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion delivery_automatic_print/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def button_validate(self):
else:
pickings = self

report.sudo()._render_qweb_pdf(pickings.ids)
if pickings:
report.sudo()._render_qweb_pdf(pickings.ids)

return res

0 comments on commit 5b7b1d4

Please sign in to comment.