Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-opw-576014-port-mma into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576014-port-mma/+merge/132456
Hello,
[FIX]mrp: Company name with '&' not print report Product Cost Structure.
Steps to reproduce:-
1. Give '&' in the company name [ex: Company Name = My & Your Comapny].
2. Install Mrp module
3. Print "Product Cost Structure" report.
Error Occurred: TypeError: coercing to Unicode: need string or buffer, tuple
found
This branch fixes this issue.
Code is forward port from 6.1
Thanks,
Mayur
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576014-port-mma/+merge/132456
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-opw-576014-port-mma.
=== modified file 'mrp/report/price.py'
--- mrp/report/price.py 2012-07-11 13:06:15 +0000
+++ mrp/report/price.py 2012-11-01 07:29:23 +0000
@@ -111,7 +111,7 @@
<PageWidth>595.27</PageWidth>
<PageHeight>841.88</PageHeight>
<tableSize>55.00mm,58.00mm,29.00mm,29.00mm,29.00mm</tableSize>
- """ % (user_pool.browse(cr, uid, uid).company_id.name)
+ """ % to_xml(user_pool.browse(cr, uid, uid).company_id.name)
config_stop = """
<report-footer>Generated by OpenERP</report-footer>
</config>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp