crash when desactivating an account
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.
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_
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
for field, value in result[
AttributeError: 'float' object has no attribute 'iteritems'
Related branches
- Mustufa Rangwala (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 43 lines (+4/-4)1 file modifiedaccount/account.py (+4/-4)
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 |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
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.