← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 774718] Re: Impossibile installare direttamente l10n_it_CEE_balance

 

** Changed in: openobject-italia
       Status: New => Confirmed

** Changed in: openobject-italia
   Importance: Undecided => Low

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

Title:
  Impossibile installare direttamente l10n_it_CEE_balance

Status in OpenERP Italia:
  Confirmed

Bug description:
  openobject-italia revno 97
  openobject-addons/6.0 revno 4545

  Passi:

  - Creare un nuovo db senza selezionare profili nel wizard
  - Installare il modulo 'l10n_it_CEE_balance'

  openerp-server dice:

  [2011-05-01 10:47:30,629][test] INFO:init:module l10n_it_CEE_balance: loading data/account.account.csv
  [2011-05-01 10:47:30,828][test] ERROR:db.cursor:bad query: insert into account_account_consol_rel (child_id,parent_id) values (4, 132)
  Traceback (most recent call last):
    File "/home/elbati/workspace/openerp/openerp6/server/bin/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  IntegrityError: insert or update on table "account_account_consol_rel" violates foreign key constraint "account_account_consol_rel_parent_id_fkey"
  DETAIL:  Key (parent_id)=(132) is not present in table "account_account".

  [2011-05-01 10:47:30,850][test] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
      _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/pooler.py", line 60, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/addons/__init__.py", line 883, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
    File "/home/elbati/workspace/openerp/openerp6/server/bin/addons/__init__.py", line 748, in load_module_graph
      load_init_update_xml(cr, m, idref, mode, kind)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/addons/__init__.py", line 635, in load_init_update_xml
      tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate)
    File "/home/elbati/workspace/openerp/openerp6/server/bin/tools/convert.py", line 950, in convert_csv_import
      raise Exception(_('Module loading failed: file %s/%s could not be processed:\n %s') % (module, fname, warning_msg))
  Exception: Module loading failed: file l10n_it_CEE_balance/account.account.csv could not be processed:
   Line 4 : insert or update on table "account_account_consol_rel" violates foreign key constraint "account_account_consol_rel_parent_id_fkey"
  DETAIL:  Key (parent_id)=(132) is not present in table "account_account".


References