When reading an Analytical Account: project.py on line 133 in _balance_calc

Bug #596800 reported by hsm flxCore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

When I open an analytical accoutn (for example 'our super product') I see an empty form and get an error "16" with the following report:

Environment Information :
System : Linux-2.6.32-22-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-22-generic
Operating System Version : #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.11
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/openerp/OpenERP/5.0/server/bin/netsvc.py", line 247, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/openerp/OpenERP/5.0/server/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/home/openerp/OpenERP/5.0/server/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/orm.py", line 2228, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/orm.py", line 2360, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/openerp/OpenERP/5.0/server/bin/osv/fields.py", line 659, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/openerp/OpenERP/5.0/server/bin/addons/account/project/project.py", line 133, in _balance_calc
    if currency[child]<>currency[id]:
KeyError: 16

When closing the error-message the form is filled with the data (Our Super Product).

Iḿ using 5.0.11 of Open ERP server and client. I installed the service profile, no extra configs or modules. Running on ubuntu 10.04.

I tried a new database and a server restart.

The tree with account has no errors.
Opening a project gives also no errors.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Hannes,

It has already been fixed. Please get the updated code.
Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.