Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021946Openbravo ERP04. Warehouse managementpublic2012-10-16 11:042012-10-18 17:55
VictorVillar 
jonalegriaesarte 
urgentmajoralways
closedunable to reproduce 
5
pi 
3.0MP17 
VictorVillar
Core
No
0021946: Using a BOM product in sales management document is not possible to reactivate the document
Using a BOM product in sales management document is not possible to reactivate the document
As group admin role,
Go to product window,
  Select Cerveza Ale
      Bill of material: YEs
      Stocked: No
  Go to Bill of materials tab:
    -Agua
    - Bebida energética
Go to Sales order:
  Create a new register Org: España
  Lines tab:
     Product: Cerveza Ale
Book it.
Realise that the 'parent' product disapears (the line still there) and the 'child' lines appear: Agua and Bebidas Energéticas

Try to reactivate it, realise that an error appears "null value in column "m_product_id" violates not-null constraint" because the 'parent' product is not there.

The same thing happens in sales invoice window.
Do not remove the product in the 'parent' line and check in the callout that if the stock flag of the product is NO and the Bill of materials: YES, then the unit price and the line net amount should be 0.
No tags attached.
related to defect 00229063.0MP20 closed jecharri Using a BOM product in sales management document is not possible to close the document 
Issue History
2012-10-16 11:04VictorVillarNew Issue
2012-10-16 11:04VictorVillarAssigned To => dmiguelez
2012-10-16 11:04VictorVillarModules => Core
2012-10-16 11:04VictorVillarResolution time => 1352674800
2012-10-16 11:04VictorVillarIssue Monitored: networkb
2012-10-16 12:53dmiguelezAssigned Todmiguelez => jonalegriaesarte
2012-10-18 17:55VictorVillarReview Assigned To => VictorVillar
2012-10-18 17:55VictorVillarNote Added: 0053474
2012-10-18 17:55VictorVillarStatusnew => closed
2012-10-18 17:55VictorVillarResolutionopen => unable to reproduce
2013-01-28 10:29VictorVillarRelationship addedrelated to 0022906

Notes
(0053474)
VictorVillar   
2012-10-18 17:55   
After some changes in the c_order_post function, this problem does not persist