openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #02120
[Bug 898478] [NEW] MRP report product.price requires currency symbol
Public bug reported:
In MRP module report report.product.price:
there are extensive use of lines of type :
<col t='yes'>""" + rml_obj.formatLang(total_strd, digits=purchase_price_digits) + ' ' + company_currency.symbol + """</col>
which naturally crash the report if the company's currency has no symbol
specified (it is not mandatory):
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[07]: File "/home/xafer/openerp/tahiti/server/bin/addons/mrp/report/price.py", line 153, in create_xml
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[08]: <col t='yes'>""" + rml_obj.formatLang(total_strd, digits=purchase_price_digits) + ' ' + company_currency.symbol or company_currency.name + """</col>
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[09]: TypeError: coercing to Unicode: need string or buffer, bool found
Replacing all 'company_currency.symbol' by '(company_currency.symbol or
company_currency.name)' does the trick
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/898478
Title:
MRP report product.price requires currency symbol
Status in OpenERP Addons (modules):
New
Bug description:
In MRP module report report.product.price:
there are extensive use of lines of type :
<col t='yes'>""" + rml_obj.formatLang(total_strd, digits=purchase_price_digits) + ' ' + company_currency.symbol + """</col>
which naturally crash the report if the company's currency has no
symbol specified (it is not mandatory):
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[07]: File "/home/xafer/openerp/tahiti/server/bin/addons/mrp/report/price.py", line 153, in create_xml
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[08]: <col t='yes'>""" + rml_obj.formatLang(total_strd, digits=purchase_price_digits) + ' ' + company_currency.symbol or company_currency.name + """</col>
[2011-11-30 19:30:54,904][JFM_local] ERROR:web-services:[09]: TypeError: coercing to Unicode: need string or buffer, bool found
Replacing all 'company_currency.symbol' by '(company_currency.symbol
or company_currency.name)' does the trick
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/898478/+subscriptions
Follow ups
References