← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680582] [NEW] Removal of Asset_Account module causes DB key error

 

Public bug reported:

[5.0 - Ubuntu 10.04 Server repository] We removed the account_asset
module (together with its related dependencies - account & account
simulation) as we did not need them anymore, but faced the following
problem when we went to look up any partners. Re-installing the module
fixed the problem, but now requires associating accounts with partners -
which is something we do not need. Any workaround, while this gets
fixed?

Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 582, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 1387, in fields_view_get
    context)
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 225, in get
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 225, in <lambda>
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 211, in _result_get
    datas = self.pool.get(model).read(cr, uid, [id], fields, context)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2229, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2378, in _read_flat
    record[f] = res2[record['id']]
KeyError: 313

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

-- 
Removal of Asset_Account module causes DB key error
https://bugs.launchpad.net/bugs/680582
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: New

Bug description:
[5.0 - Ubuntu 10.04 Server repository] We removed the account_asset module (together with its related dependencies - account & account simulation) as we did not need them anymore, but faced the following problem when we went to look up any partners. Re-installing the module fixed the problem, but now requires associating accounts with partners - which is something we do not need. Any workaround, while this gets fixed?

Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 582, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 1387, in fields_view_get
    context)
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 225, in get
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 225, in <lambda>
    res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_values.py", line 211, in _result_get
    datas = self.pool.get(model).read(cr, uid, [id], fields, context)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2229, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2378, in _read_flat
    record[f] = res2[record['id']]
KeyError: 313





Follow ups

References