← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670778] Re: Failed to click on 'Print' button at validate state of Purchase order.

 

Here is the traceback:

Traceback (most recent call last):
  File "/home/jvo/workspace/trunk/client/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
    model.get_button_action(self.form.screen, id, self.attrs)
  File "/home/jvo/workspace/trunk/client/bin/widget/model/record.py", line 388, in get_button_action
    obj.execute(action_id, datas, context=context)
  File "/home/jvo/workspace/trunk/client/bin/modules/action/main.py", line 81, in execute
    res = rpc.session.rpc_exec_auth('/object', 'execute', type, 'read', act_id, False, ctx)
  File "/home/jvo/workspace/trunk/client/bin/rpc.py", line 185, in rpc_exec_auth
    return sock.exec_auth(method, *args)
  File "/home/jvo/workspace/trunk/client/bin/rpc.py", line 90, in exec_auth
    res = self.execute(method, self._uid, self._passwd, *args)
  File "/home/jvo/workspace/trunk/client/bin/rpc.py", line 108, in execute
    result = getattr(self._sock,method)(self._db, *args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
    p.feed(response)
  File "/usr/lib/python2.6/xmlrpclib.py", line 868, in end
    return f(self, join(self._data, ""))
  File "/usr/lib/python2.6/xmlrpclib.py", line 916, in end_string
    data = _decode(data, self._encoding)
  File "/usr/lib/python2.6/xmlrpclib.py", line 164, in _decode
    data = unicode(data, encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xaf in position 10: unexpected code byte


Please specify where it has been fixed.
Bug was earlier confirmed, it should better go as released.
Thanks.

** Changed in: openobject-addons
       Status: Invalid => Confirmed

-- 
Failed to click on 'Print' button at validate state of Purchase order.
https://bugs.launchpad.net/bugs/670778
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

Bug description:
The Following Traceback will come :

Environment Information : 
System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1672 launchpad_translations_on_behalf_of_openerp-20101104045013-wa4nb44ew8m70unc
'utf8' codec can't decode byte 0xaf in position 10: unexpected code byte

Not Facing any server traceback.

The actual problem in following line of code:
<button name="%(report_purchase_order)d" string="Print" states="approved" type="action" icon="gtk-print"/>
Here need to pass action not report xml id or define it as a object type and return the report from that methods.

Thanks.





References