From eb5fa511ec12eb4914033d6a75868d4cbe5cc2a9 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Fri, 22 Feb 2013 10:35:01 +0100 Subject: [PATCH] [IMP] product: declare the product_pricelist report using XML only. bzr revid: vmt@openerp.com-20130222093501-c32md2uig2zo7481 --- addons/product/product_report.xml | 3 ++- addons/product/report/product_pricelist.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/product/product_report.xml b/addons/product/product_report.xml index 6135fe64bca..791063696c4 100644 --- a/addons/product/product_report.xml +++ b/addons/product/product_report.xml @@ -9,6 +9,7 @@ name="product.pricelist" rml="product/report/product_pricelist.rml" menu="False" - auto="False"/> + parser="product.report.product_pricelist.product_pricelist" + /> diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py index 5e9f8cf0a8a..9fd32035c64 100644 --- a/addons/product/report/product_pricelist.py +++ b/addons/product/report/product_pricelist.py @@ -126,6 +126,4 @@ class product_pricelist(report_sxw.rml_parse): price = self.formatLang(res[0]['list_price'], digits=sale_price_digits, currency_obj=pricelist.currency_id) return price -report_sxw.report_sxw('report.product.pricelist','product.product','addons/product/report/product_pricelist.rml',parser=product_pricelist) - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: