Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017596Openbravo ERPA. Platformpublic2011-06-10 13:372013-05-23 01:32
psanjuan 
Sandrahuguet 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
 
Core
No
0017596: It is not possible to select a product in a purchase invoice if there is no "Warehouse" created and setup for an organization
It is not possible to select a product in a purchase invoice if there is no "Warehouse" created and setup for an organization, because it seems that the system is applying a wrong filter in the product selector.
It filters by a warehouse named "España Región Norte" which does not exit in the new organization created.
When that filter is removed, it is possible to select the product in the product selector.
Create a new Client
Create a new Organization, set it as active
Create basic setup such as: A Fiscal Year, open period, price list, BP, Product..everything required to at least register in the system a purchase invoice in the new organization, but a warehouse.

Create a purchase Invoice, save and go to the lines
Try to select the product.
Realize that nothing is shown. See screen attached 1.

Press the (lupa).
Realize that a warehouse named "España Región Norte" is shown...which prevents from selecting the product, because that organization does not exit in the newly created organization.
See screen attached 2.
OB3-Reviewed
png 17596_1.png (77,650) 2011-06-10 13:41
https://issues.openbravo.com/file_download.php?file_id=4187&type=bug
png

png 17596_2.png (16,272) 2011-06-10 13:42
https://issues.openbravo.com/file_download.php?file_id=4188&type=bug
png

png 17596_3.png (15,425) 2011-06-10 13:42
https://issues.openbravo.com/file_download.php?file_id=4189&type=bug
png
Issue History
2011-06-10 13:37psanjuanNew Issue
2011-06-10 13:37psanjuanAssigned To => alostale
2011-06-10 13:37psanjuanModules => Core
2011-06-10 13:41psanjuanFile Added: 17596_1.png
2011-06-10 13:42psanjuanFile Added: 17596_2.png
2011-06-10 13:42psanjuanFile Added: 17596_3.png
2011-06-30 09:14alostaleStatusnew => scheduled
2011-06-30 09:14alostaleAssigned Toalostale => iperdomo
2011-06-30 09:14alostalefix_in_branch => pi
2011-07-04 17:02psarobeTarget Version3.0MP1 => 3.0MP2
2011-07-04 17:02psarobefix_in_branchpi =>
2011-08-01 21:04iperdomoTarget Version3.0MP2 => 3.0MP3
2011-09-01 16:09iperdomoTarget Version3.0MP3 => 3.0MP4
2011-09-06 11:58iperdomoAssigned Toiperdomo => dbaz
2011-09-26 12:51dbazTarget Version3.0MP4 =>
2011-10-29 19:31psarobeTag Attached: OB3-Reviewed
2012-06-01 15:51dbazAssigned Todbaz => AugustoMauch
2012-09-20 10:58shankarbAssigned ToAugustoMauch => dmiguelez
2012-09-20 10:58shankarbNote Added: 0052257
2013-04-30 11:07SandrahuguetAssigned Todmiguelez => Sandrahuguet
2013-05-07 13:15hgbotCheckin
2013-05-07 13:15hgbotNote Added: 0058485
2013-05-07 13:15hgbotStatusscheduled => resolved
2013-05-07 13:15hgbotResolutionopen => fixed
2013-05-07 13:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0596b23501e146401cea7a6541f715943956bd45 [^]
2013-05-07 13:15dmiguelezNote Added: 0058486
2013-05-07 13:15dmiguelezStatusresolved => closed
2013-05-23 01:32hudsonbotCheckin
2013-05-23 01:32hudsonbotNote Added: 0058774

Notes
(0052257)
shankarb   
2012-09-20 10:58   
I think in the Product.java line 128, we are retrieving the warehouse value from the Global context.
if (strWarehouse.equals(""))
       strWarehouse = Utility.getContext(this, vars, "M_Warehouse_ID", windowId);
And again in 187, we get the Warehouse Global variable
String strWarehouse = vars.getGlobalVariable("inpWarehouse", "Product.warehouse", "");
And based on the value set in the Session Variables, we are filtering the grid.
(0058485)
hgbot   
2013-05-07 13:15   
Repository: erp/devel/pi
Changeset: 0596b23501e146401cea7a6541f715943956bd45
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon May 06 11:20:31 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0596b23501e146401cea7a6541f715943956bd45 [^]

Fixed bug 17596 Product selector is not work in purchase if there is not a warehouse created

---
M src-db/database/model/views/M_PRODUCT_PRICE_WAREHOUSE_V.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
---
(0058486)
dmiguelez   
2013-05-07 13:15   
Code Review + Testing Ok
(0058774)
hudsonbot   
2013-05-23 01:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/97c7f6256af7 [^]

Maturity status: Test