← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 809168] [NEW] name 'get_phantom_bom_id' is not defined

 

Public bug reported:

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

** Affects: openobject-client-web
     Importance: Undecided
         Status: New

-- 
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 Web Client:
  New

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-client-web/+bug/809168/+subscriptions


Follow ups

References