odoo/odoo#190129

Created by fw-bot
Merged at 96bd89f2b3c27a2cf244dbdc274410badc8e996c

Statuses:

label
odoo-dev:saas-17.2-17.0-opw-4346390-purchase_order_discounts_on_pdf-pila-Eh4w-fw
head
a6ed91d8fd2dba1381a3d1478086457a9f965f83
merged
1 year ago by Pierre Lamotte (pila)
odoo/odoo
17.0 #189477
saas-17.2 #190129
saas-17.4 #190136

[FW][FIX] purchase: display discounts on pdf files

Issue:
The discount column is not visible on Purchase Order PDF file.

Expected:
When a discount is configured, it should be displayed on the document.

Steps to reproduce:
- Activate Purchase app;
- Go to Purchase > Orders > Request for Quotations;
- Create a new RFQ with at least 1 product and a vendor;
- Setup a discount (display the column using the options on the right of the table);
- Confirm the order;
- Using the action button Print > Purchase order, generate the PDF.

Cause:
The field isn't displayed on the template
https://github.com/odoo/odoo/blob/a288317f303f8176e058d04b611064bb457534b3/addons/purchase/report/purchase_order_templates.xml#L51-L56

Fix:
Backport the Odoo 18 fix (6474797ee21c9547f9adb9e58bd9593870cacf6b) that adds the field to the document's XML.

opw-4346390


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #189477