Files
odoo_source/addons/account/controllers
Thomas Lefebvre (thle)andadwid 4d69358386 [FIX] account: handle download unconfirmed invoice
Steps to reproduce:
-------------------
- create an invoice without confirm it;
- go to the preview and download it;

Issue:
------
A traceback appears.

Cause:
------
We try to get `ids` field of a non "record" object.

Solution:
---------
Make sure you are in the case of an invoice
that is `posted` to download a pdf.

sentry-4612532780

closes odoo/odoo#141640

Signed-off-by: Laurent Smet (las) <las@odoo.com>
Co-authored-by: adwid <awt@odoo.com>
2023-11-25 01:23:17 +00:00
..
…