Fatal error while installing module on stable 5.0.7

Bug #547253 reported by Jan Verlaan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Agile Methodology
Fix Released
High
Vincent Renaville@camptocamp

Bug Description

Try to install this module in latest bzr version dd: 25-03-2010 in a fresh install for "service profile with demo data"

Module doesn't install and exit with a error.

Environment Information :
System : Linux-2.6.31-20-generic-x86_64-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-20-generic
Operating System Version : #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : nl_NL.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.7
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 245, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 632, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 612, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 740, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 642, in load_module_graph
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, noupdate=True, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 873, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 770, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 734, in _tag_record
    f_val = self.id_get(cr, f_model, f_ref)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 755, in id_get
    result = self.pool.get('ir.model.data')._get_id(cr, self.uid, mod, id_str)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py", line 683, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_model.py", line 447, in _get_id
    raise Exception('No references to %s.%s' % (module, xml_id))
Exception: No references to modec_methodo_support.project_step_1

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :
Download full text (8.1 KiB)

From the server logfile I have some more information.

[2010-03-25 21:37:48,665] INFO:init:module project_mrp: loading objects
[2010-03-25 21:37:48,674] INFO:init:module profile_service: loading objects
[2010-03-25 21:37:48,684] WARNING:init:module portal: no quality certificate
[2010-03-25 21:37:48,707] WARNING:init:module agile-openerp-support: no quality certificate
[2010-03-25 21:37:48,707] INFO:init:module agile-openerp-support: loading project_view.xml
[2010-03-25 21:37:48,865] INFO:init:module agile-openerp-support: loading modec_methodo_view.xml
[2010-03-25 21:37:48,987] INFO:init:module agile-openerp-support: loading modec_methodo_support_wizard.xml
[2010-03-25 21:37:49,006] INFO:init:module agile-openerp-support: loading project_menu.xml
[2010-03-25 21:37:49,442] INFO:init:module agile-openerp-support: loading modec_methodo_support_data.xml
[2010-03-25 21:37:49,452] INFO:init:module agile-openerp-support: loading demo_data.xml
[2010-03-25 21:37:55,524] ERROR:init:[01]:
[2010-03-25 21:37:55,527] ERROR:init:[02]: Environment Information :
[2010-03-25 21:37:55,527] ERROR:init:[03]: System : Linux-2.6.31-20-generic-x86_64-with-Ubuntu-9.10-karmic
[2010-03-25 21:37:55,528] ERROR:init:[04]: OS Name : posix
[2010-03-25 21:37:55,528] ERROR:init:[05]: Distributor ID: Ubuntu
[2010-03-25 21:37:55,528] ERROR:init:[06]: Description: Ubuntu 9.10
[2010-03-25 21:37:55,528] ERROR:init:[07]: Release: 9.10
[2010-03-25 21:37:55,528] ERROR:init:[08]: Codename: karmic
[2010-03-25 21:37:55,528] ERROR:init:[09]: Operating System Release : 2.6.31-20-generic
[2010-03-25 21:37:55,528] ERROR:init:[10]: Operating System Version : #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010
[2010-03-25 21:37:55,529] ERROR:init:[11]: Operating System Architecture : 64bit
[2010-03-25 21:37:55,529] ERROR:init:[12]: Operating System Locale : nl_NL.UTF8
[2010-03-25 21:37:55,529] ERROR:init:[13]: Python Version : 2.6.4
[2010-03-25 21:37:55,529] ERROR:init:[14]: OpenERP-Server Version : 5.0.7
[2010-03-25 21:37:55,529] ERROR:init:[15]: Last revision No. & ID :
[2010-03-25 21:37:55,529] ERROR:init:[16]: <record id="project_task_makeaadapteddemo0" model="project.task">
[2010-03-25 21:37:55,529] ERROR:init:[17]: <field name="project_step_id" ref="modec_methodo_support.project_step_1"/>
[2010-03-25 21:37:55,530] ERROR:init:[18]: <field eval="1" name="sequence"/>
[2010-03-25 21:37:55,530] ERROR:init:[19]: <field eval="1" name="active"/>
[2010-03-25 21:37:55,530] ERROR:init:[20]: <field eval="1.0" name="planned_hours"/>
[2010-03-25 21:37:55,530] ERROR:init:[21]: <field name="user_id" ref="base.user_root"/>
[2010-03-25 21:37:55,530] ERROR:init:[22]: <field eval="&quot;&quot;&quot;2009-11-20 12:14:19&quot;&quot;&quot;" name="date_start"/>
[2010-03-25 21:37:55,530] ERROR:init:[23]: <field eval="&quot;&quot;&quot;2&quot;&quot;&quot;" name="priority"/>
[2010-03-25 21:37:55,530] ERROR:init:[24]: <field eval="&quot;&quot;&quot;draft&quot;&quot;&quot;" name="state"/>
[2010-03-25 21:37:55,530] ERROR:init:[25]: <field name="project_id" ref="modec_methodo_support.project_modec_root"/>
[2010-03-25 21:37:55,531] ERROR:init:[26]: <field name="project_bf_id" ref="modec_methodo...

Read more...

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Installing this module without demodata is successfull.!!
So priority is low and related to the demodata.

Revision history for this message
Carlos Ch. (solracch) wrote :

if you change your module name to "modec_methodo_support" it should work with demo data

Changed in agile-openerp-support:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Vincent Renaville@camptocamp (vrenaville-c2c)
Revision history for this message
Hugo Santos (Factorlibre) (hugosantosred) wrote :

This bug can be solved editing demo_data.xml file.

If you remove all the appeareances of modec_methodo_support. it's installed successfully

For example in:

<data noupdate="1">
  <record id="project_task_makeaadapteddemo0" model="project.task">
   <field name="project_step_id" ref="modec_methodo_support.project_step_1"/>

This can be solved by changing the ref of field name="project_step_id" to project_step_1 without modec_methodo_support

Changed in agile-openerp-support:
status: Confirmed → In Progress
Changed in agile-openerp-support:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.