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
closesodoo/odoo#161726
Signed-off-by: Claire Bretton (clbr) <clbr@odoo.com>