← Back to team overview

credativ team mailing list archive

[Bug 900661] [NEW] [TRUNK 6.1] Encoding bank statement with multicurrency view

 

Public bug reported:

Trunk 6.1
Web revno 1613
Server revno 3851

Use demo data. Company currency is EUR. Link new receivable account with secondary currency CHF to demo customer Camptocamp.
I created a bank account and a bank journal with multicurrency view and no currency linked.

I created an invoice of 500 CHF for customer Camptocamp.

I want to make an advance payment of 200 CHF.

I encode a bank statement with the following data:
Newly created bank journal with no currency defined. Ending balance 200.
Create a new line for customer Camptocamp, set type to customer, account receivable in CHF is selected by default.

Whatever way I enter the advance payment (simply 200 in the Amount
field, or add Payment of 200), I receive the following error message
when I click Compute:

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/agaplan/openerp/web/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/agaplan/openerp/web/addons/web/controllers/main.py", line 766, in create
    r = m.create(data, req.session.eval_context(req.context))
  File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 429, in proxy
    *args)
  File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 306, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 130, in send
    return getattr(service, method)(*args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])


Server Traceback (most recent call last):
  File "/home/agaplan/openerp/server/openerp/wsgi.py", line 77, in xmlrpc_return
    result = openerp.netsvc.dispatch_rpc(service, method, params)
  File "/home/agaplan/openerp/server/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/agaplan/openerp/server/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/agaplan/openerp/addons/account/account_cash_statement.py", line 231, in create
    res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
  File "/home/agaplan/openerp/addons/account/account_bank_statement.py", line 39, in create
    return super(account_bank_statement, self).create(cr, uid, vals, context=context)
  File "/home/agaplan/openerp/server/openerp/osv/orm.py", line 4152, in create
    result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
  File "/home/agaplan/openerp/server/openerp/osv/fields.py", line 480, in set
    if act[0] == 0:
TypeError: 'int' object is not subscriptable

** 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/900661

Title:
  [TRUNK 6.1] Encoding bank statement with multicurrency view

Status in OpenERP Addons (modules):
  New

Bug description:
  Trunk 6.1
  Web revno 1613
  Server revno 3851

  Use demo data. Company currency is EUR. Link new receivable account with secondary currency CHF to demo customer Camptocamp.
  I created a bank account and a bank journal with multicurrency view and no currency linked.

  I created an invoice of 500 CHF for customer Camptocamp.

  I want to make an advance payment of 200 CHF.

  I encode a bank statement with the following data:
  Newly created bank journal with no currency defined. Ending balance 200.
  Create a new line for customer Camptocamp, set type to customer, account receivable in CHF is selected by default.

  Whatever way I enter the advance payment (simply 200 in the Amount
  field, or add Payment of 200), I receive the following error message
  when I click Compute:

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/home/agaplan/openerp/web/addons/web/common/http.py", line 154, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/agaplan/openerp/web/addons/web/controllers/main.py", line 766, in create
      r = m.create(data, req.session.eval_context(req.context))
    File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 429, in proxy
      *args)
    File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 306, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/agaplan/openerp/web/addons/web/common/openerplib/main.py", line 130, in send
      return getattr(service, method)(*args)
    File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
      return self.__send(self.__name, args)
    File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
      verbose=self.__verbose
    File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
      return self.single_request(host, handler, request_body, verbose)
    File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
      return self.parse_response(response)
    File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
      return u.close()
    File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
      raise Fault(**self._stack[0])

  
  Server Traceback (most recent call last):
    File "/home/agaplan/openerp/server/openerp/wsgi.py", line 77, in xmlrpc_return
      result = openerp.netsvc.dispatch_rpc(service, method, params)
    File "/home/agaplan/openerp/server/openerp/netsvc.py", line 325, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/agaplan/openerp/server/openerp/service/web_services.py", line 580, in dispatch
      res = fn(db, uid, *params)
    File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/agaplan/openerp/addons/account/account_cash_statement.py", line 231, in create
      res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
    File "/home/agaplan/openerp/addons/account/account_bank_statement.py", line 39, in create
      return super(account_bank_statement, self).create(cr, uid, vals, context=context)
    File "/home/agaplan/openerp/server/openerp/osv/orm.py", line 4152, in create
      result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
    File "/home/agaplan/openerp/server/openerp/osv/fields.py", line 480, in set
      if act[0] == 0:
  TypeError: 'int' object is not subscriptable

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


Follow ups

References