openerp report designer send sxw in windows

Bug #498180 reported by TomazK
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Unassigned

Bug Description

I sent a SXW report to the openerp server from openoffice using the OpenERP Open Office Report Designer. While trying to open it, OpenERP displays the following error:

....
global cherrypy = <module 'cherrypy' from '/home/tomaz/openerp/web/lib/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object at 0xb75eb10c>, cherrypy.response.headers = {'Date': 'Fri, 18 Dec 2009 13:11:04 GMT', 'Conte...name="SXW test.odt"', 'Server': 'CherryPy/3.1.2'}, global PRINT_FORMATS = {'doc': 'application/vnd.ms-word', 'html': 'text/html', 'pdf': 'application/pdf', 'sxw': 'application/vnd.sun.xml.writer'}, data = {'format': u'odt', 'result': u'UEsDBBQAAAAAABxpkjtexjIMJwAAACcAAAAIAAAAbWltZXR5...dyMAAG1ldGEueG1sUEsFBgAAAAARABEAXQQAAHMoAAAAAA==\n', 'state': True}

<type 'exceptions.KeyError'>: u'odt'
      args = (u'odt',)
      message = u'odt'

Sending and then opening the report in PDF format works! This bug appears only on Windows!
Sending the same report in SXW in Ubuntu also works.

Related branches

Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello

In Window first save the report with sxw and after that click on send to server .

Thanks

Revision history for this message
TomazK (tomaz-korelic) wrote :

Hello!

I saved it as sxw and then sent it to the server. Now the report works!

Thank you!

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for the response Tomaz.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Wei "oldrev" Li (oldrev) wrote :

It's a defect in "web-client/openerp/controllers/actions.py":

PRINT_FORMATS = {
     'pdf' : 'application/pdf',
     'doc' : 'application/vnd.ms-word',
     'html': 'text/html',
     'sxw' : 'application/vnd.sun.xml.writer'
}

please add an "odt" pair:

     'odt' : 'application/vnd.sun.xml.writer',

Wei "oldrev" Li (oldrev)
affects: openobject-addons → openobject-client-web
Changed in openobject-client-web:
status: Invalid → New
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello,

Its fixed in stable. Please update your code.

Revision info:
2795 <email address hidden>

Thanks.

Changed in openobject-client-web:
status: New → Fix Committed
Changed in openobject-client-web:
milestone: none → 5.0.11
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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