From 962650418114ab827df4e2cdfdce8f2261282909 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Wed, 6 Mar 2024 09:44:01 +0100 Subject: [PATCH] [FIX] purchase_requsition: clean report placeholders Previous PR: odoo/odoo#135739 added in report placeholders for the sake of easier editing of reports with studio. Unfortunately it didn't check that these placeholders aren't printed with real records which results in junk being included in the report, so we add in conditions to avoid this situation. Also, since the report was already being edited, clean up some of the placeholders because they didn't make sense/ didn't do anything (e.g. the `address` values weren't used + already have a special placeholder in studio => remove them). closes odoo/odoo#156674 Signed-off-by: Arnold Moyaux (arm) --- .../report/report_purchaserequisition.xml | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/addons/purchase_requisition/report/report_purchaserequisition.xml b/addons/purchase_requisition/report/report_purchaserequisition.xml index 3c637afcd4e..09129875d14 100644 --- a/addons/purchase_requisition/report/report_purchaserequisition.xml +++ b/addons/purchase_requisition/report/report_purchaserequisition.xml @@ -6,30 +6,30 @@ VAT123 -

: VAT_DEMO

+ t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/> +

:

-

VAT Type Demo

+

Agreement Agreement00004

- Reference:
- Reference Demo + Agreement:
+ Agreement00004
-
+
Scheduled Ordering Date:
2023-08-20
-
+
Agreement Deadline:
2023-09-15
-
+
Source:
- Origin Demo + Origin
@@ -58,7 +58,7 @@ Product - Description Demo + Product description 5 @@ -67,16 +67,15 @@ Unit - Price + $50 - 2023-08-11 + 2023-08-11 -

Requests for Quotation Details

@@ -96,7 +95,7 @@ 2023-08-15
- Reference Demo + PO000042