[Bug 427170] Re: Can't print report in openerp-web client

rogerger rogerger.py at gmail.com
Fri Sep 11 16:05:50 UTC 2009


** Description changed:

  Binary package hint: openerp-server
  
  I am using python 2.5, openerp 5.0.3 (from official site). I am having
  the problem generating the report of Sales Order and Quotation in
  opernerp-web client. However the openerp-gtk client works okay.
  (openerp-web is the one causing the problem)
  
  This is the error message that I get:
  
    File "/usr/lib/python2.5/site-packages/openerp_web-5.0.3-py2.5.egg/openerp/rpc.py", line 350, in execute
      return self.gateway.execute(obj, method, *args)
    File "/usr/lib/python2.5/site-packages/openerp_web-5.0.3-py2.5.egg/openerp/rpc.py", line 154, in execute
      return self.__execute(obj, method, args)
    File "/usr/lib/python2.5/site-packages/openerp_web-5.0.3-py2.5.egg/openerp/rpc.py", line 143, in __execute
      raise common.error(_('Application Error!'), str(e))
    File "/usr/lib/python2.5/site-packages/openerp_web-5.0.3-py2.5.egg/openerp/common.py", line 72, in error
      raise TinyError(message=msg, title=title or _("Error"))
  TinyError: 'utf8' codec can't decode byte 0xbc in position 10: unexpected code byte
  
- I tried to trace it in rpc.py -> __init__.py -> def ustr and added some
- debug info (Not sure if it is helpful)
+ The exception is generated when calling:
  
- ------------------unicode1-------------------
-     <script type="text/javascript" src="/cp_widgets/openerp/javascript/tabber/tabber_cookie.js" ></script>
- -------------------unicode1-------------------
+ class XMLRPCGateway(RPCGateway) in rpc.py
  
- -------------------unicode1-------------------
-     <script type="text/javascript" >
+ return getattr(sock, method)(*args)
  
-                   if (typeof(tabberOptions) == "undefined")
-                       var tabberOptions = {};
-                   tabberOptions['onLoad'] = tabber_onload;
-                   tabberOptions['onClick'] = tabber_onclick;
-                   tabberOptions['cookie'] = 'TGTabber';
-                   tabberOptions['manualStartup'] = true;
-     </script>
- -------------------unicode1-------------------
- /cp_widgets/openerp/javascript/tabber/tabber.js
- -------------------unicode1-------------------
+ I suspect the return xml by xmlrpclib is corrupted.
  
- -------------------unicode1-------------------
-     <script type="text/javascript" src="/cp_widgets/openerp/javascript/tabber/tabber.js" ></script>
- -------------------unicode1-------------------
- Application Error!
- -------------------unicode1-------------------
+ Is there anyway that I can modify openerp-server to return xml in binary
+ representation? (Since it is a pdf report)
  
- -------------------unicode1-------------------
- Modules
- 
- Can you please help me to solve this bug?
+ Thanks.

-- 
Can't print report in openerp-web client
https://bugs.launchpad.net/bugs/427170
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list