← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 728417] Re: Exception raised when setting an Account InActive

 

Oooops, forgot to say THANKS! Now I can clean up the list of accounts
and use a decent list. :)

jlinkels

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/728417

Title:
  Exception raised when setting an Account InActive

Status in OpenERP Modules (addons):
  Fix Released

Bug description:
  [6.0.1 stable]
  [Gtk client]

  Installation with "Accounting and Finance" module installed.

  1. Navigate to Accounting/Configuration/Financial
  Accounting/Accounts/Accounts

  2. pick an account

  3. set "Active" to False (uncheck)

  4. Save change and we get the following Exception:

  
  Environment Information : 
  System : Linux-2.6.32-29-generic-i686-with-Ubuntu-10.04-lucid
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.04.2 LTS
  Release:	10.04
  Codename:	lucid
  Operating System Release : 2.6.32-29-generic
  Operating System Version : #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : en_AU.UTF8
  Python Version : 2.6.5
  OpenERP-Client Version : 6.0.1
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/home/openerp/openerp/openerp-server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/openerp/openerp/openerp-server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/openerp/openerp-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/openerp/openerp-server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/openerp/openerp-server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/openerp/openerp-server/bin/osv/orm.py", line 2940, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/openerp/openerp/openerp-server/bin/osv/orm.py", line 3054, in _read_flat
      if isinstance(res2[record['id']], str): res2[record['id']] = eval(res2[record['id']]) #TOCHECK : why got string instend of dict in python2.6
  TypeError: 'NoneType' object is unsubscriptable


References