← Back to team overview

credativ team mailing list archive

[Bug 918288] Re: [6.0.3][6.1.rc1] Infinite loop in procurement run by scheduler

 

In both case, I can notice that even the "Run procurement" button does
nothing (and that's what the _procure_confirm method also does with
"wf_service.trg_validate(uid, 'procurement.order', proc.id,
'button_check', cr)").

So it seems that it's related to a workflow missing step.
Thread-48 - pid17141_seq12	
	get_phantom_bom_id [procurement.py:51]	
	function_proxy [orm.py:366]	
	<module> [server:1]	
	safe_eval [safe_eval.py:296]	
	_eval_expr [wkf_expr.py:58]	
	check [wkf_expr.py:81]	
	_split_test [workitem.py:158]	
	process [workitem.py:61]	
	validate [instance.py:48]	
	trg_validate [wkf_service.py:124]	
	_procure_confirm [schedulers.py:82]	
	run_scheduler [schedulers.py:39]	
	_procure_calculation_all [schedulers_all.py:52]	
	run [threading.py:484]	
	__bootstrap_inner [threading.py:532]	
	__bootstrap [threading.py:504]

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/918288

Title:
  [6.0.3][6.1.rc1] Infinite loop in procurement run by scheduler

Status in OpenERP Addons (modules):
  New

Bug description:
  Steps to reproduce:

  - Create new database with demonstration data
  - Log in as Administrator
  - Install [SALES], [PURCHASE], [WAREHOUSE], [MRP]

  [SALES]
  Create a new product "Product A" and set:
  - Product Type: Stockable Product
  - Procurement Method: Make to Order
  - Supply method : Produce

  [MANUFACTURING]
  Create a new BOM for "Product A" and set:
  - BoM Type: Sets / Phantom
  - Add component [SIDEPAN] Side Panel with quantity of 1.0

   (our objective is to link the component SIDEPAN to "Product A"
  without generating a production order)

  [SALES]
  Create a new quotation for partner "Ecole de Commerce de Liege"
  - Add a line for "Product A"
  - Confirm Quotation to create a sale order

  [WAREHOUSE]
  Run schedulers manually with "Compute Schedulers"
  - Compute
  - Go to "Procurement Exceptions" and uncheck "To fix" in order to view everything

  === USER POINT OF VIEW ===

  Results:
  You can see "Product A" is locked in "Confirmed" state

  === SERVER POINT OF VIEW ===

  Results:
  A new python thread is stuck in an infinite loop "while True" in _procure_confirm (schedulers.py), if you debug the process you will see that:
  - "offset" is never increased
  - "report_total" is constantly increased

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/918288/+subscriptions


References