Product Cost Structure report crashes on &
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 | ||
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP's Framework R&D |
Bug Description
One of the work centers in the DB has an & in the name. If I try to print a Product Cost Structure report of a product which uses this work center, I get the following error:
xmlParseEntityRef: no name, line 172, column 43
(<class 'lxml.etree.
Steps to reproduce:
* Define a work center at Manufacturing -> Configuration -> Resources -> Work Centers, call it e.g. Pick & Pack
* Define a product which uses this work center
* Use the 'Product Cost Structure' button to print a report
Possible workaround: rename the work center to e.g. 'Pick and Pack'
If I modify openobject-
Related branches
- Vo Minh Thu: Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/report/render/rml2pdf/utils.py (+1/-1)
- Rucha (Open ERP) (community): Approve
- Kirti Savalia(OpenERP) (community): Needs Resubmitting
- qdp (OpenERP): Needs Fixing
-
Diff: 110 lines (+12/-13)1 file modifiedmrp/report/price.py (+12/-13)
- OpenERP Core Team: Pending requested
-
Diff: 49 lines (+12/-7)2 files modifiedopenerp/report/render/rml2pdf/trml2pdf.py (+4/-5)
openerp/report/render/rml2pdf/utils.py (+8/-2)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: maintenance |
Hello,
The bug needs to be fixed from both server and addons side. for the server fix its here at lp:~openerp-dev/openobject-server/trunk-bug-885299-nch with revision-info:3779 <email address hidden>
for the addons part the file mrp/report/price.py which has overriden the report parser to create dynamic xml file so the fix is to convert each such string in to_xml() before placing it in the xml node.
@ community Team: can you please assign it to appropriate addons team.
Regards,