From a3dc91a0db0b5fce6ce88087829dc14eeb4886a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 28 Sep 2018 12:47:15 +0200 Subject: [PATCH] [IMP] sale: make SO download/print same on portal than backend We don't want two different reports for the same thing. We will therefore lose the ability to print the "quotation builder" report built with the snippets. PR: #27293 task-1889346 --- addons/sale/controllers/portal.py | 2 +- addons/sale/report/sale_report.xml | 13 ------------- addons/sale/report/sale_report_templates.xml | 15 --------------- 3 files changed, 1 insertion(+), 29 deletions(-) diff --git a/addons/sale/controllers/portal.py b/addons/sale/controllers/portal.py index 7705f10e4e9..0796b65dead 100644 --- a/addons/sale/controllers/portal.py +++ b/addons/sale/controllers/portal.py @@ -147,7 +147,7 @@ class CustomerPortal(CustomerPortal): return request.redirect('/my') if report_type in ('html', 'pdf', 'text'): - return self._show_report(model=order_sudo, report_type=report_type, report_ref='sale.report_web_quote', download=download) + return self._show_report(model=order_sudo, report_type=report_type, report_ref='sale.action_report_saleorder', download=download) # use sudo to allow accessing/viewing orders for public user # only if he knows the private token diff --git a/addons/sale/report/sale_report.xml b/addons/sale/report/sale_report.xml index 7b7835c61c2..9c9addca79b 100644 --- a/addons/sale/report/sale_report.xml +++ b/addons/sale/report/sale_report.xml @@ -21,18 +21,5 @@ name="sale.report_saleorder_pro_forma" print_report_name="'PRO-FORMA - %s' % (object.name)" /> - - diff --git a/addons/sale/report/sale_report_templates.xml b/addons/sale/report/sale_report_templates.xml index 72816ae3941..9a7647180d3 100644 --- a/addons/sale/report/sale_report_templates.xml +++ b/addons/sale/report/sale_report_templates.xml @@ -232,19 +232,4 @@ - -