Files
mizosoft 588bf6b2bb [FIX] account: use proforma preview for non-printed invoices
Issue
-----

If an invoice is created, but not yet "Send & Print", the portal preview shows a normal invoice,
but when "Download"ed from the portal preview, a proforma invoice is downloaded. The download
behavior is intended since the client shouldn't be able to get a "final" invoice themselves,
before the accountant generates one with "Send & Print". However, the HTML preview should also
show a proforma invoice to be consistent with this, so the user downloads what they see.

Steps
-----

 - Create a new invoice: Accounting -> Customers -> Invoices -> New -> ...
 - Go to portal by clicking on "Preview".
 - You'll see a normal invoice. Now click "Download".
 - A proforma invoice is downloaded.

Cause
-----

The HTML-rendered invoice in the portal preview isn't configured to be proforma.

opw-3848049

closes odoo/odoo#161726

Signed-off-by: Claire Bretton (clbr) <clbr@odoo.com>
2024-04-22 08:27:07 +00:00
..
…