← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 809152] Re: [TRUNK]:NameError: name 'get_phantom_bom_id' is not defined

 

Hello,

I am confirming this issue for sale module : When we try to install sale module the related demo will creates a specified bug traceback.This blocks the sale module installation.
@addons3: I suggesting a related yml should be added instead of xml demo data.
@Amit : Thanks for pointing this out.

Thanks.

** Changed in: openobject-addons
   Importance: Undecided => High

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

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

Title:
  [TRUNK]:NameError: name 'get_phantom_bom_id' is not defined

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  When i installed all modules from configuration wizard with new fresh
  db , i got :

  [2011-07-12 11:12:03,307][trunk] ERROR:tools.convert.xml_import:Parse error in /home/amit/OpenERP/sources/addons/trunk/sale/sale_demo.xml:182:
  <function model="procurement.order" name="run_scheduler"/>
  Traceback (most recent call last):
    File "/home/amit/OpenERP/sources/server/trunk/openerp/tools/convert.py", line 888, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/amit/OpenERP/sources/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/amit/OpenERP/sources/server/trunk/openerp/tools/convert.py", line 192, in _eval_xml
      res = getattr(model, method)(cr, uid, *args)
    File "/home/amit/OpenERP/sources/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/amit/OpenERP/sources/addons/trunk/procurement/schedulers.py", line 74, in _procure_confirm
      wf_service.trg_validate(uid, 'procurement.order', proc.id, 'button_check', cr)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_service.py", line 80, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/workitem.py", line 156, in _split_test
      if wkf_expr.check(cr, workitem, ident, transition,signal):
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_expr.py", line 81, in check
      return _eval_expr(cr, ident, workitem, transition['condition'])
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/home/amit/OpenERP/sources/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
  [2011-07-12 11:12:03,321][trunk] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/amit/OpenERP/sources/server/trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/addons/base/res/res_config.py", line 166, in action_next
      next = self.execute(cr, uid, ids, context=None)
    File "/home/amit/OpenERP/sources/addons/trunk/base_setup/installer.py", line 129, in execute
      new_db, self.pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/pooler.py", line 44, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/modules/registry.py", line 132, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/modules/loading.py", line 334, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
    File "/home/amit/OpenERP/sources/server/trunk/openerp/modules/loading.py", line 199, in load_module_graph
      load_demo_xml(cr, module_name, idref, mode)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/modules/loading.py", line 98, in load_demo_xml
      _load_data(cr, module_name, idref, mode, 'demo_xml')
    File "/home/amit/OpenERP/sources/server/trunk/openerp/modules/loading.py", line 147, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/tools/convert.py", line 998, in convert_xml_import
      obj.parse(doc.getroot())
    File "/home/amit/OpenERP/sources/server/trunk/openerp/tools/convert.py", line 888, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/amit/OpenERP/sources/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/amit/OpenERP/sources/server/trunk/openerp/tools/convert.py", line 192, in _eval_xml
      res = getattr(model, method)(cr, uid, *args)
    File "/home/amit/OpenERP/sources/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/amit/OpenERP/sources/addons/trunk/procurement/schedulers.py", line 74, in _procure_confirm
      wf_service.trg_validate(uid, 'procurement.order', proc.id, 'button_check', cr)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_service.py", line 80, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/workitem.py", line 156, in _split_test
      if wkf_expr.check(cr, workitem, ident, transition,signal):
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_expr.py", line 81, in check
      return _eval_expr(cr, ident, workitem, transition['condition'])
    File "/home/amit/OpenERP/sources/server/trunk/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/home/amit/OpenERP/sources/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-addons/+bug/809152/+subscriptions


References