summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-02-22 10:35:01 +0100
committerVo Minh Thu <vmt@openerp.com>2013-02-22 10:35:01 +0100
commiteb5fa511ec12eb4914033d6a75868d4cbe5cc2a9 (patch)
treee9625d5661148a6e179d18bcf69d85dd2b0e6ef1
parent73bf45f9a425f8dcd08733322cb3d59b25ff4345 (diff)
[IMP] product: declare the product_pricelist report using XML only.
bzr revid: vmt@openerp.com-20130222093501-c32md2uig2zo7481
-rw-r--r--addons/product/product_report.xml3
-rw-r--r--addons/product/report/product_pricelist.py2
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"
+ />
</data>
</openerp>
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: