Skip to content
Snippets Groups Projects
Commit 192e128e authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] account: set main attachment only for posted invoices


When printing a draft invoice, it raises an error.

The error comes from fix #65320: the latter registers the printed
invoice as main attachment, but this needs to be done only with posted
invoices.

OPW-2427247

closes odoo/odoo#66516

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent 8bec87d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment