← Back to team overview

credativ team mailing list archive

[Bug 1256973] Re: AssertionError: External ID conflict

 

as of http://bazaar.launchpad.net/~openupgrade-committers/openupgrade-
addons/7.0/view/head:/document_ftp/migrations/7.0.1.99/openupgrade_analysis.txt,
this is indeed something yet to be done.

For the time being, you can delete the record with name
action_document_browse
frmo your ir_model_data

Please be aware that the migration for 7.0 is far from finished, so ymmv

-- 
You received this bug notification because you are a member of
OpenUpgrade Committers, which is subscribed to OpenUpgrade Server.
https://bugs.launchpad.net/bugs/1256973

Title:
  AssertionError: External ID conflict

Status in OpenUpgrade Server:
  New

Bug description:
  Hello,

  I just tried to upgrade our openerp database from version 6.1 to 7.0
  but I receive an AssertionError.

  Kind regards,
  Phil

  2013-12-02 16:01:28,065 1621 INFO openerp OpenUpgrade: product: post-migration script called with version 6.1.1.1
  2013-12-02 16:01:28,066 1621 INFO openerp OpenUpgrade: product: loading migrations/7.0.1.1/data.xml
  2013-12-02 16:01:28,097 1621 INFO openerp openerp.addons.base.ir.ir_translation: module product: loading translation file (de) for language de_DE
  2013-12-02 16:01:28,098 1621 INFO openerp openerp.tools.translate: loading /opt/openupgrade-addons/product/i18n/de.po
  2013-12-02 16:01:28,375 1621 INFO openerp openerp.modules.module: module base_calendar: creating or updating database tables
  2013-12-02 16:01:28,940 1621 INFO openerp openerp.modules.loading: module base_calendar: loading security/calendar_security.xml
  2013-12-02 16:01:28,975 1621 WARNING openerp openerp.addons.base.ir.ir_ui_view: Can't render view base.user_groups_view for model: res.users. If you are migrating between major versions of OpenERP, this is to be expected (otherwise, do not run OpenUpgrade server).
  2013-12-02 16:01:28,989 1621 INFO openerp openerp.modules.loading: module base_calendar: loading security/ir.model.access.csv
  2013-12-02 16:01:29,077 1621 INFO openerp openerp.modules.loading: module base_calendar: loading base_calendar_view.xml
  2013-12-02 16:01:29,193 1621 INFO openerp openerp.modules.loading: module base_calendar: loading crm_meeting_view.xml
  2013-12-02 16:01:29,330 1621 INFO openerp openerp.modules.loading: module base_calendar: loading base_calendar_data.xml
  2013-12-02 16:01:29,355 1621 INFO openerp openerp.modules.loading: module base_calendar: loading crm_meeting_data.xml
  2013-12-02 16:01:29,392 1621 INFO openerp openerp.addons.base.ir.ir_translation: module base_calendar: loading translation file (de) for language de_DE
  2013-12-02 16:01:29,393 1621 INFO openerp openerp.tools.translate: loading /opt/openupgrade-addons/base_calendar/i18n/de.po
  2013-12-02 16:01:29,616 1621 INFO openerp openerp.addons.document_ftp.ftpserver: 
   Serving FTP on 127.0.0.1:8021

  2013-12-02 16:01:29,621 1621 INFO openerp openerp.modules.module: module document_ftp: creating or updating database tables
  2013-12-02 16:01:29,624 1621 INFO ? openerp.addons.document_ftp.ftpserver: Serving FTP on 127.0.0.1:8021
  2013-12-02 16:01:29,663 1621 INFO openerp openerp.modules.loading: module document_ftp: loading wizard/ftp_configuration_view.xml
  2013-12-02 16:01:29,669 1621 ERROR openerp openerp.tools.convert: Parse error in /opt/openupgrade-addons/document_ftp/wizard/ftp_configuration_view.xml:4: 
  <record model="ir.actions.act_url" id="action_document_browse">
          <field name="name">Browse Files</field>
          <field name="url">ftp://localhost:8021/</field>
      </record>
  Traceback (most recent call last):
    File "/opt/openupgrade-server/openerp/tools/convert.py", line 850, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/opt/openupgrade-server/openerp/tools/convert.py", line 817, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/opt/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 950, in _update
      " you can't define a `%s` record with this ID." % (xml_id, real_model, model)
  AssertionError: External ID conflict, action_document_browse already refers to a `ir.actions.url` record, you can't define a `ir.actions.act_url` record with this ID.
  2013-12-02 16:01:29,671 1621 ERROR openerp openerp: Failed to initialize database `openerp`.
  Traceback (most recent call last):
    File "/opt/openupgrade-server/openerp/cli/server.py", line 98, in preload_registry
      db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
    File "/opt/openupgrade-server/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module)
    File "/opt/openupgrade-server/openerp/modules/registry.py", line 192, in get
      update_module)
    File "/opt/openupgrade-server/openerp/modules/registry.py", line 218, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/opt/openupgrade-server/openerp/modules/loading.py", line 378, in load_modules
      processed_upgrade = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module, registry)
    File "/opt/openupgrade-server/openerp/modules/loading.py", line 285, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks, registry=registry)
    File "/opt/openupgrade-server/openerp/modules/loading.py", line 209, in load_module_graph
      load_data(module_name, idref, mode)
    File "/opt/openupgrade-server/openerp/modules/loading.py", line 77, in <lambda>
      load_data = lambda *args: _load_data(cr, *args, kind='data')
    File "/opt/openupgrade-server/openerp/modules/loading.py", line 128, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/opt/openupgrade-server/openerp/tools/convert.py", line 957, in convert_xml_import
      obj.parse(doc.getroot())
    File "/opt/openupgrade-server/openerp/tools/convert.py", line 850, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/opt/openupgrade-server/openerp/tools/convert.py", line 817, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/opt/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 950, in _update
      " you can't define a `%s` record with this ID." % (xml_id, real_model, model)
  AssertionError: External ID conflict, action_document_browse already refers to a `ir.actions.url` record, you can't define a `ir.actions.act_url` record with this ID.

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


References