Trunk Report: report_type=odt/sxw does not work in osv.osv_memory

Bug #933983 reported by Mustufa Rangwala (Open ERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

If i try to print report in odt format or sxw it gives me error:

    while n.tag != txt.group(2):
AttributeError: 'NoneType' object has no attribute 'tag'

Thanks,
Mustufa

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Mustufa Rangwala,

I have checked your issue in trunk with ubuntu 10.04 and 11.10 but I didn't face the problem which you have described in your specification. Would you please see attached video, try one's again with fresh db and informed us still you have faced the same problem ?

Thanks and waiting for your reply.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

I have created new db with latest trunk code and installed Sales, HR, CRM, MRP applications in the db and then tried to change the report_type of say for example on trial balance report to odt/sxw is gives error by printing same report.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Mustufa Rangwala,

Thanks for your reply.

I have face the same problem when report_type change to sxw in Trial Balance, Taxes Report.

Thanks.

summary: - Trunk Report: report_type=odt/sxw does not work
+ Trunk Report: report_type=odt/sxw does not work in osv.osv_memory
affects: openobject-addons → openobject-server
Changed in openobject-server:
status: Incomplete → New
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
importance: Medium → Low
Revision history for this message
David (dhecar) wrote :

Same issue.

Server : 4349
addons : 7214

raceback (most recent call last):
  File "/usr/local/src/COSES/server/openerp/service/web_services.py", line 727, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/local/src/COSES/server/openerp/report/report_sxw.py", line 440, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/local/src/COSES/server/openerp/report/report_sxw.py", line 446, in create_source_odt
    return self.create_single_odt(cr, uid, ids, data, report_xml, context or {})
  File "/usr/local/src/COSES/server/openerp/report/report_sxw.py", line 614, in create_single_odt
    rml_dom = self.preprocess_rml(rml_dom, mime_type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 82, in preprocess_rml
    self.preprocess_rml(node,type)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 80, in preprocess_rml
    t = _regex3.sub(_sub3, t)
  File "/usr/local/src/COSES/server/openerp/report/preprocess.py", line 41, in _sub3
    while n.tag != txt.group(2):
AttributeError: 'NoneType' object has no attribute 'tag'
2013-05-27 20:49:11,400 23060 ERROR ? openerp.netsvc: 'NoneType' object has no attribute 'tag'
(<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'tag'",), <traceback object at 0xb2086acc>)
2013-05-27 20:49:11,403 23060 INFO ? werkzeug: 127.0.0.1 - - [27/May/2013 20:49:11] "POST /web/report HTTP/1.1" 500 -

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.