[FIX] account: register attachment only if it exists
When printing an invoice, the server tries to register one attachment as
main one (see #65320). However, if there is not any attachment, this
will raise an error.
OPW-2465995
closes odoo/odoo#66706
Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
Please register or sign in to comment