← Back to team overview

openerp-brazil-team team mailing list archive

Erro criar novo plano de contas

 

Pessoal,


Estou obtendo o seguinte erro ao criar um novo plano de contas



Environment Information :
System : Linux-2.6.38-8-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.38-8-generic
Operating System Version : #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : pt_BR.UTF8
Python Version : 2.7.1+
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth,
params)
  File "/opt/openerp/server/bin/service/web_services.py", line 599, in
dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/bin/addons/base/res/res_config.py", line 167, in
action_next
    next = self.execute(cr, uid, ids, context=None)
  File "/opt/openerp/addons/account/installer.py", line 210, in execute
    f_ids = fy_obj.search(cr, uid, [('date_start', '<=', res['date_start']),
('date_stop', '>=', res['date_stop']), ('company_id', '=',
res['company_id'][0])], context=context)
TypeError: 'int' object is not subscriptable

Alguém sabe como resolver?

Obrigado

-- 
Daniel Pereira de Carvalho