Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020107Openbravo ERP03. Procurement managementpublic2012-03-26 11:112012-04-26 12:25
vmromanos 
alostale 
normalminoralways
closedfixed 
20Debian 5.0
 
3.0MP11 
Core
No
0020107: Create Purchase Order window (pop-up from Manage Requisition window) Warehouse field in popup
While creating a purchase order from the Manage Requisition window, the pop-up window shows a default warehouse that doesn't belong to the selected organization.

The warehouse should belong to the selected organization
 Go to Manage Requisition.
  Create a record with 'Be Soft Drinker' as business partner and 'Be Soft Drinker Price List' as Price List.
  Go to 'lines' tab.
  Create a record with 'Be Soft Drinker' as business partner and 'Be Soft Drinker Price List' as Price List.
  Press the Complete button.
  Press 'Create Purchase Order' button.
  In the popup you can see that the organization is FB US INC, but the warehouse belongs to Spain North organization
Add a default value to the warehouse field based on the organization and a validation rule to ensure the warehouse is in the organization natural tree
No tags attached.
related to defect 0018664 closed naiaramartinez Create Purchase Order window (pop-up from Manage Requisition window) should be review and re-phrased 
Issue History
2012-03-26 11:11vmromanosNew Issue
2012-03-26 11:11vmromanosAssigned To => vmromanos
2012-03-26 11:11vmromanosModules => Core
2012-03-26 11:18vmromanosRelationship addedrelated to 0018664
2012-03-26 11:36vmromanosProposed Solution updated
2012-03-27 10:41naiaramartinezNote Added: 0046751
2012-03-27 10:42naiaramartinezAssigned Tovmromanos => alostale
2012-04-02 12:53alostaleNote Added: 0047307
2012-04-02 12:55hgbotCheckin
2012-04-02 12:55hgbotNote Added: 0047308
2012-04-02 12:55hgbotStatusnew => resolved
2012-04-02 12:55hgbotResolutionopen => fixed
2012-04-02 12:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/65b0dd5d72c74f5e84aa416c39645cf0a1b5f6cc [^]
2012-04-13 13:44hudsonbotCheckin
2012-04-13 13:44hudsonbotNote Added: 0047564
2012-04-26 12:25vmromanosNote Added: 0048011
2012-04-26 12:25vmromanosStatusresolved => closed
2012-04-26 12:25vmromanosFixed in Version => 3.0MP11

Notes
(0046751)
naiaramartinez   
2012-03-27 10:41   
If you follow the steps to reproduce, you can see int he popup that the warehouses are:
  -España Region Norte
  -España Region Sur
  -Us East coast
  -US West Coast
but the first two warehouses are not belonging to 'F&B US INc' organization.

Then if you change the value of the organization, the warehouse combo is refreshing correctly. If you select again the 'F&B US, Inc.' organization you can see that the warehouses are:
  -Us East coast
  -US West Coast

So, it is a wad bug that is not completing the values of the warehouse correctly the first time the values are shown. After changing the value of organization it works.
(0047307)
alostale   
2012-04-02 12:53   
Not risky fix: adding a validation rule to warehouse parameter to force callout execution on popup openening.

Test plan:
-check warehouse list is ok when popup is opened
-check warehouse list is correctly updated when organization is changed
(0047308)
hgbot   
2012-04-02 12:55   
Repository: erp/devel/pi
Changeset: 65b0dd5d72c74f5e84aa416c39645cf0a1b5f6cc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Apr 02 12:54:15 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/65b0dd5d72c74f5e84aa416c39645cf0a1b5f6cc [^]

fixed bug 20107: Incorrect warehouse list in Create Purchase Order process

---
M src-db/database/sourcedata/AD_PROCESS_PARA.xml
M src-db/database/sourcedata/AD_VAL_RULE.xml
---
(0047564)
hudsonbot   
2012-04-13 13:44   
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/5093a7ea6dbb [^]

Maturity status: Test
(0048011)
vmromanos   
2012-04-26 12:25   
code review + testing OK