odoo/odoo#190129
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- 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.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #189477