c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06707
[Bug 686097] [NEW] Project doesn't depend upon Account, but it still contains a ref. of account's xml record
Public bug reported:
Install Project module. and this traceback says it all.
[2010-12-06 23:08:45,887][trunk6] ERROR:tools.convert.xml_import:Parse error in /home/jvo/workspace/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','<>','close')]" view_id="account.view_account_analytic_account_tree" view_mode="tree,form" view_type="form"/>
[2010-12-06 23:08:45,891][trunk6] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 119, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 203, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 193, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jvo/workspace/trunk/server/bin/addons/base/res/res_config.py", line 166, in action_next
next = self.execute(cr, uid, ids, context=None)
File "/home/jvo/workspace/trunk/server/bin/addons/base/res/res_config.py", line 397, in execute
pooler.restart_pool(cr.dbname, update_module=True)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/pooler.py", line 39, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/home/jvo/workspace/trunk/server/bin/addons/__init__.py", line 852, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/home/jvo/workspace/trunk/server/bin/addons/__init__.py", line 727, in load_module_graph
load_init_update_xml(cr, m, idref, mode, kind)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/convert.py", line 968, in convert_xml_import
obj.parse(doc.getroot())
File "/home/jvo/workspace/trunk/server/bin/tools/convert.py", line 861, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/convert.py", line 838, in id_get
res = self.model_id_get(cr, id_str)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/misc.py", line 797, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/misc.py", line 797, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "/home/jvo/workspace/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
** Affects: openobject-addons
Importance: High
Assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Status: Confirmed
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Importance: Undecided => High
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)
--
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/686097
Title:
Project doesn't depend upon Account,but it still contains a ref. of account's xml record
Status in OpenObject Addons Modules:
Confirmed
Bug description:
Install Project module. and this traceback says it all.
[2010-12-06 23:08:45,887][trunk6] ERROR:tools.convert.xml_import:Parse error in /home/jvo/workspace/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','<>','close')]" view_id="account.view_account_analytic_account_tree" view_mode="tree,form" view_type="form"/>
[2010-12-06 23:08:45,891][trunk6] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 119, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 203, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 193, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jvo/workspace/trunk/server/bin/addons/base/res/res_config.py", line 166, in action_next
next = self.execute(cr, uid, ids, context=None)
File "/home/jvo/workspace/trunk/server/bin/addons/base/res/res_config.py", line 397, in execute
pooler.restart_pool(cr.dbname, update_module=True)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/pooler.py", line 39, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/home/jvo/workspace/trunk/server/bin/addons/__init__.py", line 852, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/home/jvo/workspace/trunk/server/bin/addons/__init__.py", line 727, in load_module_graph
load_init_update_xml(cr, m, idref, mode, kind)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/convert.py", line 968, in convert_xml_import
obj.parse(doc.getroot())
File "/home/jvo/workspace/trunk/server/bin/tools/convert.py", line 861, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/convert.py", line 838, in id_get
res = self.model_id_get(cr, id_str)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/misc.py", line 797, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "/home/jvo/workspace/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/jvo/workspace/trunk/server/bin/tools/misc.py", line 797, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "/home/jvo/workspace/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
Follow ups
References