← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 712327] Re: Duplicate View account

 

*** This bug is a duplicate of bug 708603 ***
    https://bugs.launchpad.net/bugs/708603

** This bug has been marked a duplicate of bug 708603
   Traceback occurs at the time of "Account" duplication.
 * You can subscribe to bug 708603 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/708603/+subscribe

-- 
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/712327

Title:
  Duplicate View account

Status in OpenERP Modules (addons):
  Confirmed
Status in OpenERP Addons 6.0 series:
  In Progress
Status in OpenERP Addons trunk series:
  Confirmed

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





References