From 9255d3d7d9bddf52d48df0ec81ac6bdeddbfec29 Mon Sep 17 00:00:00 2001 From: anhe-odoo Date: Wed, 5 Jan 2022 10:54:02 +0000 Subject: [PATCH] [FIX] purchase: corrects the order date on validated RFQ/PO pdf report Expected behaviour The order date on the Purchase Order report (printable pdf) should be the confirmation date if available and the order deadline else. Observed Behaviour The order date on the PO pdf is the order deadline of the RFQ, no matter if the oder has been confirmed or not. Reproducibility This issue can be reproduced following these steps: 1. Create a new RFQ 2. Set an order deadline different from the current day 3. Confirm the RFQ 4. Download the printable PDF (as pdf) and check the Order date Related ticket - opw-2696794 closes odoo/odoo#82267 X-original-commit: 91d0354 Signed-off-by: Arnold Moyaux --- addons/purchase/report/purchase_order_templates.xml | 6 +++++- addons/purchase_stock/report/purchase_report_templates.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/purchase/report/purchase_order_templates.xml b/addons/purchase/report/purchase_order_templates.xml index 22e9190cd81..c4de9956066 100644 --- a/addons/purchase/report/purchase_order_templates.xml +++ b/addons/purchase/report/purchase_order_templates.xml @@ -34,8 +34,12 @@ Your Order Reference:

-

+
Order Date: +

+

+
+ Order Deadline:

diff --git a/addons/purchase_stock/report/purchase_report_templates.xml b/addons/purchase_stock/report/purchase_report_templates.xml index 89acd21a429..dabcaaf4854 100644 --- a/addons/purchase_stock/report/purchase_report_templates.xml +++ b/addons/purchase_stock/report/purchase_report_templates.xml @@ -13,7 +13,7 @@ - +
Incoterm: