Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Auto BOM For RetailmajorN/A2019-01-14 19:002019-02-13 09:58
ReportergorkaionView Statuspublic 
Assigned Torqueralta 
PriorityhighResolutionfixedFixed in VersionRR19Q2
StatusclosedFix in branchFixed in SCM revision0df28c36bf36
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0039945: Get stock call of autbom does not include the process and warehouse ids

DescriptionThe get stock procedure has a warehouseId parameter to ensure that the proposed stock belongs to that warehouse. Do not confuse with priorityWarehouseId. The autbom should set on this paremeter the warehouse of the locator defined in the production plan to ensure that the stock is consumed from the same warehouse where the bom product is created as it is done in the backend bom process (m_production_run procedure)


The get stock procedure has a p_process_id parameter. This parameter is the identifier of the process that is requesting the stock. Usually is the ad_process_id of the process definition in the AD.

When this parameter is set it is possible to use Warehouse Rules or implement Get Stock extension points that modify the stock proposed depending on the caller process.

The get stock call for AutoBOM is not populating this parameter making impossible to customize it.
Steps To ReproduceOn a organization (ORG) with 2 warehouse on hand. Warehouse A and Warehouse B.

Define a new BOM Product with autobom. In the Manufacturing tab of the product set a locator from Warehouse A. So the produced product should be stored on that locator.

Make stock available only in Warehouse B.

Sell the product and check that it is consuming stock from Warehouse B and the produced bom product is in warehouse A. This is not correct. All the production lines of a Production Plan should use locators of the same warehouse.
Proposed SolutionSet the warehouse id of the locator set in the process plan in the warehouseId parameter.

Set '137' as process id. Which corresponds with the ad_process_id of the create bom lines backend process.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0040324 closedAtulOpenbravo Openbravo ERP Bill Of Materials Production should take the stock from same warehouse than the storage bin defined in the Production Plan tab 

-  Notes
hgbot (developer)
2019-02-12 20:41

Repository: erp/pmods/org.openbravo.retail.autobom
Changeset: 0df28c36bf36f75fbee4b21000f51b3b2a01beed
Author: Rafael Queralta <rafaelcuba81 <at>>
Date: Tue Feb 12 14:37:42 2019 -0500
URL: [^]

Fixed issue 39945: Get stock call of autbom does not include the process and
warehouse ids

- Set the warehouse id with locator of production plan and process id with '137'

M src/org/openbravo/retail/autobom/

- Issue History
Date Modified Username Field Change
2019-01-14 19:00 gorkaion New Issue
2019-01-14 19:00 gorkaion Assigned To => Retail
2019-01-14 19:00 gorkaion Resolution time => 1549234800
2019-01-14 19:00 gorkaion Triggers an Emergency Pack => No
2019-01-14 19:12 martinsdan Issue Monitored: martinsdan
2019-01-14 19:23 gorkaion Steps to Reproduce Updated View Revisions
2019-01-15 12:45 rqueralta Assigned To Retail => rqueralta
2019-01-15 12:45 rqueralta Status new => scheduled
2019-02-12 20:41 hgbot Checkin
2019-02-12 20:41 hgbot Note Added: 0109784
2019-02-12 20:41 hgbot Status scheduled => resolved
2019-02-12 20:41 hgbot Resolution open => fixed
2019-02-12 20:41 hgbot Fixed in SCM revision => [^]
2019-02-13 09:58 marvintm Review Assigned To => marvintm
2019-02-13 09:58 marvintm Status resolved => closed
2019-02-13 09:58 marvintm Fixed in Version => RR19Q2
2019-03-05 16:23 ngarcia Relationship added related to 0040324

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker