From 19935c2c388da49661f500fc3e634f638e31b360 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 11 May 2017 12:13:34 +0200 Subject: [PATCH] [FIX] sale: Display correclty 'Pro-forma #' on invoice report Purpose ======= When sending a proforma by email, the email template is correclty rendered. But 'Quotation #' id displayed on the printed report instead of 'Pro-forma' # Specification ============= - Retrieve correctly the context key in the template - Remove the associated ir.actions.report.xml as we cannot pass a specific context from there --- addons/sale/report/sale_report.xml | 12 ------------ addons/sale/report/sale_report_templates.xml | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/addons/sale/report/sale_report.xml b/addons/sale/report/sale_report.xml index 3e4996dffe2..e0bad531aea 100644 --- a/addons/sale/report/sale_report.xml +++ b/addons/sale/report/sale_report.xml @@ -12,17 +12,5 @@ (object.state in ('draft', 'sent') and 'Quotation'+'-'+(object.name) or 'Order'+'-'+(object.name)) - - - - 'Pro-Forma'+'-'+(object.name) - diff --git a/addons/sale/report/sale_report_templates.xml b/addons/sale/report/sale_report_templates.xml index b16c4d98192..71a6bbd144d 100644 --- a/addons/sale/report/sale_report_templates.xml +++ b/addons/sale/report/sale_report_templates.xml @@ -29,11 +29,11 @@

- + Order # Quotation # - + Pro-Forma #