Duplicate View account

Bug #712327 reported by Vincent Renaville@camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
6.0
In Progress
Medium
Jay Vora (Serpent Consulting Services)
Trunk
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

Hello,

Version : latest V6

When you duplicate an account with childs you will have error : this is my use case

- Go to the menu : Accounting -> Configuration -> Account -> Accounts
- Select a view account
- Duplicate it

You will receive the error :

Environment Information :
System : Linux-2.6.32-28-generic-pae-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-28-generic-pae
Operating System Version : #55-Ubuntu SMP Mon Jan 10 22:34:08 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : en_US.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/vrenaville/tmpinstance/DAILY6LP/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/orm.py", line 2922, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/orm.py", line 3033, in _read_flat
    res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/osv/fields.py", line 793, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/vrenaville/tmpinstance/DAILY6LP/server/bin/addons/account/account.py", line 305, in __compute
    sums[current.id][fn] += sums[child.id][fn]
KeyError: 1477

Thanks for your precious help,

Vincent

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
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.