← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 686552] Re: Impossible to install project module

 

*** This bug is a duplicate of bug 685818 ***
    https://bugs.launchpad.net/bugs/685818

** This bug has been marked a duplicate of bug 685818
   [Trunk V6] Unable to install Project Management
 * You can subscribe to bug 685818 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/685818/+subscribe

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

Title:
  Impossible to install project module

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  I try to install the module project on a fresh database, during the installation I have this error:

[2010-12-07 13:44:35,618][modphone1] INFO:init:module project: loading board_project_manager_view.xml
[2010-12-07 13:44:35,641][modphone1] ERROR:tools.convert.xml_import:Parse error in /home/niv/openerp-trunk/addons/project/board_project_manager_view.xml:25: 
<act_window id="act_my_account" name="My accounts to invoice" res_model="account.analytic.account" domain="[('user_id','=',uid),('state','&lt;&gt;','close')]" view_id="account.view_account_analytic_account_tree" view_mode="tree,form" view_type="form"/>
[2010-12-07 13:44:35,645][modphone1] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/niv/openerp-trunk/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 100, in upgrade_module
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/niv/openerp-trunk/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/niv/openerp-trunk/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 852, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 727, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 624, in load_init_update_xml
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 968, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 861, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 429, in _tag_act_window
    view_id = self.id_get(cr, rec.get('view_id','').encode('utf-8'))
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 838, in id_get
    res = self.model_id_get(cr, id_str)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 847, in model_id_get
    return model_data_obj.get_object_reference(cr, self.uid, mod, id_str)
  File "/home/niv/openerp-trunk/server/bin/tools/misc.py", line 797, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/home/niv/openerp-trunk/server/bin/addons/base/ir/ir_model.py", line 422, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/home/niv/openerp-trunk/server/bin/tools/misc.py", line 797, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/home/niv/openerp-trunk/server/bin/addons/base/ir/ir_model.py", line 415, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to account.view_account_analytic_account_tree
[2010-12-07 13:44:35,647][modphone1] ERROR:netsvc:Dispatcher error
Traceback (most recent call last):
  File "/home/niv/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/niv/openerp-trunk/server/bin/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/niv/openerp-trunk/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 100, in upgrade_module
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/niv/openerp-trunk/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/niv/openerp-trunk/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 852, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 727, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/home/niv/openerp-trunk/server/bin/addons/__init__.py", line 624, in load_init_update_xml
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 968, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 861, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 429, in _tag_act_window
    view_id = self.id_get(cr, rec.get('view_id','').encode('utf-8'))
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 838, in id_get
    res = self.model_id_get(cr, id_str)
  File "/home/niv/openerp-trunk/server/bin/tools/convert.py", line 847, in model_id_get
    return model_data_obj.get_object_reference(cr, self.uid, mod, id_str)
  File "/home/niv/openerp-trunk/server/bin/tools/misc.py", line 797, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/home/niv/openerp-trunk/server/bin/addons/base/ir/ir_model.py", line 422, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/home/niv/openerp-trunk/server/bin/tools/misc.py", line 797, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/home/niv/openerp-trunk/server/bin/addons/base/ir/ir_model.py", line 415, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to account.view_account_analytic_account_tree


After that, if I push the button a second time, I have another error:

[2010-12-07 13:45:57,694][modphone1] INFO:init:module project: loading security/project_security.xml
[2010-12-07 13:45:57,762][modphone1] ERROR:db.cursor:bad query: insert into rule_group_rel (rule_group_id,group_id) values (28,18)
Traceback (most recent call last):
  File "/home/niv/openerp-trunk/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
IntegrityError: ERREUR:  une instruction insert ou update sur la table « rule_group_rel » viole la contrainte de clé
étrangère « rule_group_rel_group_id_fkey »
DÉTAIL : La clé (group_id)=(18) n'est pas présente dans la table « res_groups ».

[2010-12-07 13:45:57,763][modphone1] ERROR:tools.convert.xml_import:Parse error in /home/niv/openerp-trunk/addons/project/security/project_security.xml:35: 
<record model="ir.rule" id="task_visibility_rule">
        <field name="name">Tasks According to User and Project</field>
        <field name="model_id" ref="model_project_task"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|','|',('user_id','=',False),('user_id','=',user.id),('project_id.members','in', [user.id]),('project_id.user_id','=',user.id)]</field>
        <field name="groups" eval="[(4,ref('project.group_project_user'))]"/>
    </record>
MODEL 215 228 res_groups
[2010-12-07 13:45:57,767][modphone1] ERROR:netsvc:Dispatcher error
Traceback (most recent call last):
  File "/home/niv/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/niv/openerp-trunk/server/bin/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/home/niv/openerp-trunk/server/bin/osv/osv.py", line 151, in wrapper
    self.abortResponse(1, _('Integrity Error'), 'warning', msg)
  File "/home/niv/openerp-trunk/server/bin/netsvc.py", line 70, in abortResponse
    raise Exception("%s -- %s\n\n%s"%(origin, description, details))
Exception: warning -- Integrity Error

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: Access Groups - res.groups]





References