crash when desactivating an account

Bug #833377 reported by Alexis de Lattre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

Here is the scenario to reproduce the bug :
- take openobject-server trunk and openobject-addons trunk (up-to-date as of today)
- setup a new database with module account_accountant
- Go to Financial management > Configuration > Financial accounting > Accounts > Accounts
- Open a regular account
- Uncheck the "active" field and save
=> CRASH

Here is the backtrace :

Environment Information :
System : Linux-2.6.35-30-generic-x86_64-with-Ubuntu-11.04-natty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Operating System Release : 2.6.35-30-generic
Operating System Version : #54-Ubuntu SMP Tue Jun 7 18:41:54 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.7.1+
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1940 launchpad_translations_on_behalf_of_openerp-20110814044436-u41w16uv3zxxjr7i
Traceback (most recent call last):
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/netsvc.py", line 440, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/service/web_services.py", line 581, in dispatch
    res = fn(db, uid, *params)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/orm.py", line 3416, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/orm.py", line 3527, in _read_flat
    res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
  File "/home/alexis/new_boite/dev/openobject-server-trunk/openerp/osv/fields.py", line 1050, in get
    for field, value in result[id].iteritems():
AttributeError: 'float' object has no attribute 'iteritems'

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Alexis de Lattre,

Thanks for reporting, the solution of this bug will be merged in addons soon. Following are the Revision ID and Revision Number of the merge proposal:

Revision ID : <email address hidden>
Revision Number : 4959

Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Changed in openobject-addons:
status: Fix Committed → Fix Released
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.