← Back to team overview

openerp-india team mailing list archive

[Bug 933411] [NEW] [6.1] [analytic] Chart of Analytic Accounts filter error

 

Public bug reported:

The Chart of Analytic Accounts allows the chart to be filtered based on
a date range. If no date range is entered, the chart works fine. If a
date range is entered, the following error is generated:

Server Traceback (most recent call last):
  File "/home/jjesudason/Documents/Development/openerp/trunk/web-new/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/orm.py", line 3381, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/orm.py", line 3492, in _read_flat
    res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
  File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/fields.py", line 1124, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 94, in _debit_credit_bal_qtty
    return self._compute_level_tree(cr, uid, ids, child_ids, res, ['debit', 'credit', 'balance', 'quantity'], context)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 47, in _compute_level_tree
    recres[account.id] = recursive_computation(account)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
    result = recursive_computation(son)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
    result = recursive_computation(son)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
    result = recursive_computation(son)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
    result = recursive_computation(son)
  File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 42, in recursive_computation
    result2[field] += result[field]
KeyError: 'quantity'

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

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

Title:
  [6.1] [analytic] Chart of Analytic Accounts filter error

Status in OpenERP Addons (modules):
  New

Bug description:
  The Chart of Analytic Accounts allows the chart to be filtered based
  on a date range. If no date range is entered, the chart works fine. If
  a date range is entered, the following error is generated:

  Server Traceback (most recent call last):
    File "/home/jjesudason/Documents/Development/openerp/trunk/web-new/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/service/web_services.py", line 572, in dispatch
      res = fn(db, uid, *params)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/orm.py", line 3381, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/orm.py", line 3492, in _read_flat
      res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
    File "/home/jjesudason/Documents/Development/openerp/trunk/server/openerp/osv/fields.py", line 1124, in get
      result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 94, in _debit_credit_bal_qtty
      return self._compute_level_tree(cr, uid, ids, child_ids, res, ['debit', 'credit', 'balance', 'quantity'], context)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 47, in _compute_level_tree
      recres[account.id] = recursive_computation(account)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
      result = recursive_computation(son)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
      result = recursive_computation(son)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
      result = recursive_computation(son)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 38, in recursive_computation
      result = recursive_computation(son)
    File "/home/jjesudason/Documents/Development/openerp/trunk/addons/analytic/analytic.py", line 42, in recursive_computation
      result2[field] += result[field]
  KeyError: 'quantity'

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


Follow ups

References