odoo/odoo#189477
Created by Pierre Lamotte (pila)
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:17.0-opw-4346390-purchase_order_discounts_on_pdf-pila
- head
- 69192309509e5ed648a37d9945a5fd861c419e59
- merged
- 1 year ago by Logistics, Steve Van Essche
| odoo/odoo | |
|---|---|
| 17.0 | #189477 |
| saas-17.2 | #190129 |
| saas-17.4 | #190136 |
[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