← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 753448] Re: [6.1 trunk] [account] : Error when trying to view COA

 

On 08. 04. 11 08:49, Amit Parik (OpenERP) wrote:
> Hello Bogdan,
>
> I have tested your scenario at my end. But I am not able to faced this
> type of traceback.
>
> So would you please provide your copy of dump database then we will
> check what is the problem you have faced.
>
> Thanks.
>
> ** Changed in: openobject-addons
>        Status: New => Incomplete
>
Hello!

Unfortunately I cannot provide it, as it is a production one. However,
this is the second similar bug (first one was #746429) which you say
that it works on your side. Maybe you have an updated client, which
allows this kind of error. I don't (I didn't dare to update since
january, after the last bugs which blocked server/client setups).

Please have a look to what I corrected, maybe it gives a hint. It
appears that reassigning values (not sure it is the correct wording:-))
works for you. I doubt it should, however... I think this [0] appeared
after a change in the base module or something like that...

-        fiscalyear_id = data.get('fiscalyear', False) and
data['fiscalyear'][0] or False
+        fiscalyear_id = data.get('fiscalyear', False) and
data['fiscalyear'] or False

Thank you
Bogdan

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

Title:
  [6.1 trunk] [account] :  Error when trying to view COA

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  hi there,

  when trying to view the COA (Accounting>Accounting plan>Chart of
  accounts) i get the traceback after filling the wizard dialog and
  trying to execute:

  Environment Information :
  System : Linux-2.6.35-28-generic-i686-with-Ubuntu-10.10-maverick
  OS Name : posix
  Distributor ID:    Ubuntu
  Description:    Ubuntu 10.10
  Release:    10.10
  Codename:    maverick
  Operating System Release : 2.6.35-28-generic
  Operating System Version : #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : fr_CH.UTF8
  Python Version : 2.6.6
  OpenERP-Client Version : 6.1-dev
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
  call last):
    File
  "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line
  410, in dispatch
      result = ExportService.getService(service_name).dispatch(method,
  auth, params)
    File
  "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
  line 598, in dispatch
      res = fn(db, uid, *params)
    File
  "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
  122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File
  "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
  176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File
  "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
  167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/addons/account/wizard/account_chart.py", line 86,
  in account_chart_open_window
      fiscalyear_id = data.get('fiscalyear', False) and
  data['fiscalyear'][0] or False
  TypeError: 'int' object is unsubscriptable

  thank you!
  bogdan



Follow ups

References