← Back to team overview

credativ team mailing list archive

[Bug 906808] [NEW] Point of sale payment issue

 

Public bug reported:

Hello,

I got traceback

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/tiny/sources/client-web/openerp-web/addons/web/common/http.py", line 176, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/tiny/sources/client-web/openerp-web/addons/web/controllers/main.py", line 843, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/home/tiny/sources/client-web/openerp-web/addons/web/controllers/main.py", line 835, in call_common
    return getattr(req.session.model(model), method)(*args)
  File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 430, in proxy
    *args)
  File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 306, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 130, in send
    return getattr(service, method)(*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 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])


Server Traceback (most recent call last):
  File "/home/tiny/sources/server/trunk/openerp/wsgi.py", line 77, in xmlrpc_return
    result = openerp.netsvc.dispatch_rpc(service, method, params)
  File "/home/tiny/sources/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/tiny/sources/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/tiny/sources/addons/trunk/point_of_sale/wizard/pos_payment.py", line 49, in check
    order_obj.add_payment(cr, uid, active_id, data, context=context)
  File "/home/tiny/sources/addons/trunk/point_of_sale/point_of_sale.py", line 276, in add_payment
    ('journal_id', '=', int(data['journal'])),
ValueError: invalid literal for int() with base 10: ''


Pos backend  -> pos orders -> create new add some products -> payment

Here with payment mode when you going to select second blank journal and
try to make payment it give you bug.

Here right journal name and right configuration should require.

This problem many be because of wrong demo data configuration.


Thanks,
Tejas - TTA

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

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/906808

Title:
  Point of sale payment issue

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  I got traceback

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/home/tiny/sources/client-web/openerp-web/addons/web/common/http.py", line 176, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/tiny/sources/client-web/openerp-web/addons/web/controllers/main.py", line 843, in call_button
      action = self.call_common(req, model, method, args, domain_id, context_id)
    File "/home/tiny/sources/client-web/openerp-web/addons/web/controllers/main.py", line 835, in call_common
      return getattr(req.session.model(model), method)(*args)
    File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 430, in proxy
      *args)
    File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 306, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/tiny/sources/client-web/openerp-web/addons/web/common/openerplib/main.py", line 130, in send
      return getattr(service, method)(*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 1392, in _parse_response
      return u.close()
    File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
      raise Fault(**self._stack[0])

  
  Server Traceback (most recent call last):
    File "/home/tiny/sources/server/trunk/openerp/wsgi.py", line 77, in xmlrpc_return
      result = openerp.netsvc.dispatch_rpc(service, method, params)
    File "/home/tiny/sources/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/tiny/sources/server/trunk/openerp/service/web_services.py", line 580, in dispatch
      res = fn(db, uid, *params)
    File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/tiny/sources/addons/trunk/point_of_sale/wizard/pos_payment.py", line 49, in check
      order_obj.add_payment(cr, uid, active_id, data, context=context)
    File "/home/tiny/sources/addons/trunk/point_of_sale/point_of_sale.py", line 276, in add_payment
      ('journal_id', '=', int(data['journal'])),
  ValueError: invalid literal for int() with base 10: ''


  Pos backend  -> pos orders -> create new add some products -> payment

  Here with payment mode when you going to select second blank journal
  and try to make payment it give you bug.

  Here right journal name and right configuration should require.

  This problem many be because of wrong demo data configuration.

  
  Thanks,
  Tejas - TTA

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/906808/+subscriptions


Follow ups

References