← Back to team overview

openerp-india team mailing list archive

[Bug 940237] Re: [6.1] chart of account fails with multicompany

 

** Information type changed from Public to Public Security

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/940237

Title:
  [6.1] chart of account fails with multicompany

Status in OpenERP Server:
  Invalid

Bug description:
  Hello, the problem is, when I generate chart of accounts on
  multicompany, fail to show chart of accounts (not to generate)

  server61: 4078     web61: 2238   addons61: 6631

  From user Administrator:

  1/ create new database without demo data (Your Company)

  2/ install account app, and configure chart of accounts for this
  company (Spanish for me)

  3/ create new company COMP2

  4/ Run wizard to create new chart of accounts and select COMP2

  5/ edit Administrator settings to allow 'Your company' and ' COMP2'
  (first check  multicompanies)

  6/  change Administrator preferences to select 'COMP2'

  7/ Accounting --> Charts --> Chart of accounts and Open Chart  = FAIL:

  2012-02-24 11:39:56,180 6201 ERROR ? openerp.osv.osv: Uncaught exception
  Traceback (most recent call last):
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/orm.py", line 3405, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/orm.py", line 3516, in _read_flat
      res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
    File "/home/joseba/src/openerp_v61/openerp-server61/openerp/osv/fields.py", line 1132, in get
      result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
    File "/home/joseba/src/openerp_v61/addons61/account/account.py", line 290, in __compute
      aml_query = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
    File "/home/joseba/src/openerp_v61/addons61/account/account_move_line.py", line 89, in _query_get
      ids = ','.join([str(x) for x in context['periods']])
  TypeError: 'int' object is not iterable
  2012-02-24 11:39:56,181 6201 ERROR ? openerp.netsvc: 'int' object is not iterable

  
  Thx 
  Juanjo A.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/940237/+subscriptions


References