← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 703454] [NEW] osv wizard doesn't display error message

 

Public bug reported:

In one wizard of my module (extending osv.osv_memory), I have something like this
                    raise  osv.except_osv(_('UserError'), _('Lab test already invoiced'))

However, when this error is raised, the GTK client doesn't display that
error message, just an empty box (see attachment), while the error (with
all correct information) is logged to the command-line where openerp-
client was started.

This didn't happens before, so I wonde what changes in GTK-Client or
server (osv module) that causes this? This happens with openerp-client
RC1, RC2, the trunk (up to
1762/launchpad_translations_on_behalf_of_openerp-20110109045113-me77jjxp50gdjmub
due to bug #698134, which is not completely fixed for GTK client)


Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
    model.get_button_action(self.form.screen, id, self.attrs)
  File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/widget/model/record.py", line 374, in get_button_action
    self.resource,attrs['name'], [id], context)
  File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 185, in rpc_exec_auth
    return sock.exec_auth(method, *args)
  File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 119, in exec_auth
    res = self.execute(method, self._uid, self._passwd, *args)
  File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 136, in execute
    raise e
tiny_socket.Myexception: ('warning\nL\xe1\xbb\x97i ng\xc6\xb0\xe1\xbb\x9di s\xe1\xbb\xad d\xe1\xbb\xa5ng', 'Traceback (most recent call last):\n  File "/var/local/software/openerp-v6.0/server/bin/netsvc.py", line 489, in dispatch\n    result = ExportService.getService(service_name).dispatch(method, auth, params)\n  File "/var/local/software/openerp-v6.0/server/bin/service/web_services.py", line 599, in dispatch\n    res = fn(db, uid, *params)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 128, in wrapper\n    self.abortResponse(1, inst.name, inst.exc_type, inst.value)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 122, in wrapper\n    return f(self, dbname, *args, **kwargs)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 176, in execute\n    res = self.execute_cr(cr, uid, obj, method, *args, **kw)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 167, in execute_cr\n    return getattr(object, method)(cr, uid, *args, **kw)\n  File "/var/local/software/openerp-v6.0/server/bin/addons/medical_invoice/wizard/wizard_create_lab_invoice.py", line 54, in create_lab_invoice\n    raise  osv.except_osv(_(\'UserError\'), _(\'Lab test already invoiced\'))\nexcept_osv: (\'warning\', u\'L\\u1ed7i ng\\u01b0\\u1eddi s\\u1eed d\\u1ee5ng\')\n')

** Affects: openobject-client
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/703454

Title:
  osv wizard doesn't display error message

Status in OpenObject GTK Client:
  New

Bug description:
  In one wizard of my module (extending osv.osv_memory), I have something like this
                      raise  osv.except_osv(_('UserError'), _('Lab test already invoiced'))

  However, when this error is raised, the GTK client doesn't display
  that error message, just an empty box (see attachment), while the
  error (with all correct information) is logged to the command-line
  where openerp-client was started.

  This didn't happens before, so I wonde what changes in GTK-Client or
  server (osv module) that causes this? This happens with openerp-client
  RC1, RC2, the trunk (up to
  1762/launchpad_translations_on_behalf_of_openerp-20110109045113-me77jjxp50gdjmub
  due to bug #698134, which is not completely fixed for GTK client)

  
  Traceback (most recent call last):
    File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
      model.get_button_action(self.form.screen, id, self.attrs)
    File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/widget/model/record.py", line 374, in get_button_action
      self.resource,attrs['name'], [id], context)
    File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 185, in rpc_exec_auth
      return sock.exec_auth(method, *args)
    File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 119, in exec_auth
      res = self.execute(method, self._uid, self._passwd, *args)
    File "/home/phongnt/Documents/Projects/openerp-client-6.0.0-rc2/bin/rpc.py", line 136, in execute
      raise e
  tiny_socket.Myexception: ('warning\nL\xe1\xbb\x97i ng\xc6\xb0\xe1\xbb\x9di s\xe1\xbb\xad d\xe1\xbb\xa5ng', 'Traceback (most recent call last):\n  File "/var/local/software/openerp-v6.0/server/bin/netsvc.py", line 489, in dispatch\n    result = ExportService.getService(service_name).dispatch(method, auth, params)\n  File "/var/local/software/openerp-v6.0/server/bin/service/web_services.py", line 599, in dispatch\n    res = fn(db, uid, *params)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 128, in wrapper\n    self.abortResponse(1, inst.name, inst.exc_type, inst.value)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 122, in wrapper\n    return f(self, dbname, *args, **kwargs)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 176, in execute\n    res = self.execute_cr(cr, uid, obj, method, *args, **kw)\n  File "/var/local/software/openerp-v6.0/server/bin/osv/osv.py", line 167, in execute_cr\n    return getattr(object, method)(cr, uid, *args, **kw)\n  File "/var/local/software/openerp-v6.0/server/bin/addons/medical_invoice/wizard/wizard_create_lab_invoice.py", line 54, in create_lab_invoice\n    raise  osv.except_osv(_(\'UserError\'), _(\'Lab test already invoiced\'))\nexcept_osv: (\'warning\', u\'L\\u1ed7i ng\\u01b0\\u1eddi s\\u1eed d\\u1ee5ng\')\n')





Follow ups

References