c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #28379
[Bug 809168] Re: name 'get_phantom_bom_id' is not defined
Fix landed in server at revision 3505 revid
odo@xxxxxxxxxxx-20110712133343-unf610k23fa6d3pk.
After the recent change to make module install atomically (code *and*
data), we ran into issues when installing a new module indirectly
triggers code of a not-yet-loaded-but-installed module, via its data
that is already in the database (e.g. worflows or reports modified by
this module within another module, that now refer to its code). To
avoid this, we now make sure that we only install new modules on top of
a consistent system (code *and* data), by loading all installed or 'to
upgrade' modules *before* starting to install new ones.
** Changed in: openobject-server
Status: In Progress => Fix Released
** Changed in: openobject-server
Milestone: None => 6.1
--
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/809168
Title:
name 'get_phantom_bom_id' is not defined
Status in OpenERP Server:
Fix Released
Bug description:
tested in web and trunk
to reproduce :
- create a db
- install sales warehouse and mrp
bug
[2011-07-12 09:18:49,638][test_webr_120711] INFO:init:module sale: loading sale_demo.xml
[2011-07-12 09:18:51,005][test_webr_120711] ERROR:tools.convert.xml_import:Parse error in /home/aline/openerp/addons/trunk/sale/sale_demo.xml:182:
<function model="procurement.order" name="run_scheduler"/>
Traceback (most recent call last):
File "/home/aline/openerp/server/trunk/openerp/tools/convert.py", line 888, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/aline/openerp/server/trunk/openerp/tools/convert.py", line 366, in _tag_function
_eval_xml(self,rec, self.pool, cr, uid, self.idref, context=context)
File "/home/aline/openerp/server/trunk/openerp/tools/convert.py", line 192, in _eval_xml
res = getattr(model, method)(cr, uid, *args)
File "/home/aline/openerp/addons/trunk/procurement/procurement.py", line 473, in run_scheduler
self._procure_confirm(cr, uid, use_new_cursor=use_new_cursor, context=context)
File "/home/aline/openerp/addons/trunk/procurement/schedulers.py", line 74, in _procure_confirm
wf_service.trg_validate(uid, 'procurement.order', proc.id, 'button_check', cr)
File "/home/aline/openerp/server/trunk/openerp/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/aline/openerp/server/trunk/openerp/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/aline/openerp/server/trunk/openerp/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/aline/openerp/server/trunk/openerp/workflow/workitem.py", line 156, in _split_test
if wkf_expr.check(cr, workitem, ident, transition,signal):
File "/home/aline/openerp/server/trunk/openerp/workflow/wkf_expr.py", line 81, in check
return _eval_expr(cr, ident, workitem, transition['condition'])
File "/home/aline/openerp/server/trunk/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/aline/openerp/server/trunk/openerp/tools/safe_eval.py", line 285, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
NameError: name 'get_phantom_bom_id' is not defined
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/809168/+subscriptions
References