Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027788 | Openbravo ERP | 04. Warehouse management | public | 2014-10-07 17:39 | 2014-12-30 23:22 |
|
Reporter | vmromanos | |
Assigned To | AugustoMauch | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR14Q4 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Packaging and release |
Regression date | 2014-07-14 |
Regression introduced in release | pi |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/fab9b7248bbb2a08d1486d2481f4478722a83186 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0027788: Filters don't work properly on Manage Stock |
Description | The filters in the Manage Stock popup at Stock Reservation window have stopped working. No filtering is done when you filter by any of the columns: Storage Bin, Attribute Set Value, etc.
In 3.0PR14Q3.1 they worked fine, but it has suddenly stopped working. It looks like a regression in the platform side, because the java in charge of this datasource hasn't been modified during this period of time: https://code.openbravo.com/erp/devel/pi/log/tip/src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java [^]
Note that the 3rd (last) changeset doesn't impact in this behavior. |
Steps To Reproduce | Login as group admin:
1. Go to preference window and set the preference Enable Stock Reservations = Y
2. Go to Stock Reservation window and create a new record:
Org= F&B España - Región Norte
Product= Zumo de Naranja Bio 0,33L
Qty= 10
Warehouse= España Región Norte
3. Click on Manage Stock. A P&E is shown with several records.
4. Try to filter by any Storage Bin. It doesn't filter properly
5. Try with other columns, like Attribute Set Value. It doesn't filter properly |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0026719 | | closed | Sandrahuguet | Stock reservation pick lines does not keep selected lines | related to | defect | 0027735 | 3.0PR15Q1 | closed | AtulOpenbravo | Stock Reservation cannot be manually done if there exist pending purchase orders for that product | caused by | design defect | 0025211 | | closed | AugustoMauch | Filter by selected value in FK uses identifier instead of ID | related to | defect | 0027848 | | closed | reinaldoguerra | Not possible to select more than one value in fk filter drop down on Manage Stock | related to | defect | 0030455 | | closed | markmm82 | Filtering not working in Manage Reservation pop-up when selecting more than one record in Attribute Set Value and other column | causes | defect | 0029216 | | closed | alostale | can't prevent filtering FK by identifier from Grid Configuration |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2014-10-07 17:39 | vmromanos | New Issue | |
2014-10-07 17:39 | vmromanos | Assigned To | => AugustoMauch |
2014-10-07 17:39 | vmromanos | Modules | => Core |
2014-10-07 17:39 | vmromanos | Regression level | => Pre packaging ( pi ) |
2014-10-07 17:39 | vmromanos | Triggers an Emergency Pack | => No |
2014-10-07 17:40 | vmromanos | Relationship added | related to 0026719 |
2014-10-07 17:40 | vmromanos | Relationship added | related to 0027735 |
2014-10-07 17:47 | vmromanos | Regression level | Pre packaging ( pi ) => Packaging and release |
2014-10-07 17:57 | AugustoMauch | Regression date | => 2014-07-14 |
2014-10-07 17:57 | AugustoMauch | Regression introduced in release | => pi |
2014-10-07 17:57 | AugustoMauch | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/fab9b7248bbb2a08d1486d2481f4478722a83186 [^] |
2014-10-07 18:02 | AugustoMauch | Note Added: 0070781 | |
2014-10-08 10:50 | alostale | Assigned To | AugustoMauch => inigosanchez |
2014-10-08 10:50 | alostale | Priority | normal => immediate |
2014-10-08 12:12 | hgbot | Checkin | |
2014-10-08 12:12 | hgbot | Note Added: 0070799 | |
2014-10-08 12:14 | AugustoMauch | Note Added: 0070800 | |
2014-10-09 10:54 | inigosanchez | Note Added: 0070832 | |
2014-10-09 11:18 | inigosanchez | Note Added: 0070834 | |
2014-10-09 13:55 | hgbot | Checkin | |
2014-10-09 13:55 | hgbot | Note Added: 0070844 | |
2014-10-09 18:50 | hgbot | Checkin | |
2014-10-09 18:50 | hgbot | Note Added: 0070850 | |
2014-10-09 18:50 | hgbot | Checkin | |
2014-10-09 18:50 | hgbot | Note Added: 0070851 | |
2014-10-10 11:43 | AugustoMauch | Issue Monitored: alostale | |
2014-10-10 11:44 | AugustoMauch | Review Assigned To | => alostale |
2014-10-10 11:45 | hgbot | Checkin | |
2014-10-10 11:45 | hgbot | Note Added: 0070867 | |
2014-10-10 11:45 | hgbot | Status | new => resolved |
2014-10-10 11:45 | hgbot | Resolution | open => fixed |
2014-10-10 11:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/616e60ce9a707b1d34b3e809af0f96faea749c0b [^] |
2014-10-10 11:45 | hgbot | Checkin | |
2014-10-10 11:45 | hgbot | Note Added: 0070868 | |
2014-10-13 10:34 | alostale | Assigned To | inigosanchez => AugustoMauch |
2014-10-13 10:34 | alostale | Status | resolved => new |
2014-10-13 10:34 | alostale | Resolution | fixed => open |
2014-10-13 10:35 | alostale | Relationship added | caused by 0025211 |
2014-10-13 10:35 | alostale | Status | new => scheduled |
2014-10-13 10:35 | alostale | fix_in_branch | => pi |
2014-10-13 10:35 | alostale | Status | scheduled => resolved |
2014-10-13 10:35 | alostale | Resolution | open => fixed |
2014-10-13 10:42 | alostale | Note Added: 0070896 | |
2014-10-13 10:42 | alostale | Status | resolved => new |
2014-10-13 10:42 | alostale | Resolution | fixed => open |
2014-10-13 11:18 | AugustoMauch | Status | new => scheduled |
2014-10-13 11:19 | AugustoMauch | Note Added: 0070901 | |
2014-10-13 11:19 | AugustoMauch | Status | scheduled => resolved |
2014-10-13 11:19 | AugustoMauch | Resolution | open => fixed |
2014-10-13 11:33 | AugustoMauch | Relationship added | related to 0027848 |
2014-10-13 12:18 | alostale | Note Added: 0070902 | |
2014-10-13 12:18 | alostale | Status | resolved => closed |
2014-10-13 12:18 | alostale | Fixed in Version | => 3.0PR14Q4 |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072915 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072924 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072925 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072926 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072927 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072928 | |
2015-03-10 12:23 | alostale | Relationship added | causes 0029216 |
2016-06-02 12:47 | ngarcia | Relationship added | related to 0030455 |
Notes |
|
|
The problem is caused by the project that improved the performance of the foreign key filters. Now when picking a value from the filter drop down instead of filtering by the record identifier, the record id is used.
This change is supported by Openbravo default datasources, but manual datasources need to be modified to support it. |
|
|
(0070799)
|
hgbot
|
2014-10-08 12:12
|
|
Repository: erp/devel/pi
Changeset: 553b2d6a7722853be38755bc7b7f09a93f0a6f7b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Oct 08 12:10:58 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/553b2d6a7722853be38755bc7b7f09a93f0a6f7b [^]
Related to bug 27788: Fk filters work in StockReservationPickAndEditDataSource
The StockReservationPickAndEditDataSource manual datasource did not support filtering the foreign key columns using their ids. This type of criteria is built when the user filters a foreign key by selecting a value from the filter drop down.
Now, for each foreign key column, the manual datasource is able to filter them by their id and by their identifier.
---
M src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java
---
|
|
|
|
Done:
- StockReservationPickAndEditDataSource
Pending:
- ReturnFromCustomerPickEditLineDatasource
- ManageVariantsDS
- ReturnToVendorPickAndEditDataSource |
|
|
|
Some dropdowns in ReturnFromCustomerPickEditLineDatasource manual datasource did not work in 3.0PR14Q3.1:
- Attribute set value dropdown: "No items to show." message is displayed without considering that there is data in the grid.
- UOM dropdown: Same behavior than Attribute set value.
- Return reason dropdown: Same behavior than Attribute set value.
The queries that are created are not correct . |
|
|
|
Filters in ReturnToVendorPickAndEditDataSource manual datasource works fine. |
|
|
(0070844)
|
hgbot
|
2014-10-09 13:55
|
|
Repository: erp/devel/pi
Changeset: 17287f94d832847ab9ffceeb42df0c056dac2808
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu Oct 09 13:53:32 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/17287f94d832847ab9ffceeb42df0c056dac2808 [^]
Related to bug 27788: Fk filters not work in manual datasource.
The ReturnFromCustomerPickEditLineDatasource manual datasource did not support filtering the foreign key columns using their ids.
This type of criteria is built when the user filters a foreign key by selecting a value from the filter drop down.
Now, for each foreign key column, ReturnFromCustomerPickEditLineDatasource manual datasource is able to filter them by their id and by their identifier.
Other manual datasources like ManageVariantsDS and ReturnToVendorPickAndEditDataSource it have been reviewed and they support filtering the foreign key columns using their ids.
---
M src/org/openbravo/common/datasource/ReturnFromCustomerPickEditLineDatasource.java
---
|
|
|
(0070850)
|
hgbot
|
2014-10-09 18:50
|
|
Repository: erp/devel/pi
Changeset: 4f9b797e17d289ec6bbd3475bf90fbcf1ed83be8
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Oct 09 18:47:37 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4f9b797e17d289ec6bbd3475bf90fbcf1ed83be8 [^]
Related with issue 27788: Adds new field to obserds_datasource table
The new field is a flag that controls how the foreign keys are filtered in the tables that uses a manual datasource to fetch its data. If the flag is checked, then if a foreign key field of that table is filtered by selecting a record from the filter drop down, the foreign key will be filtered using its id. That is, the criteria will be like this:
{fieldName: foreign-key-name,
operator: 'equals',
value: record-id}
If this flag is unchecked, then the criteria used will be like this:
{fieldName: foreign-key-name$_identifier
operator: 'iContains',
value: 'identifier'}
---
M modules/org.openbravo.service.datasource/src-db/database/model/tables/OBSERDS_DATASOURCE.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_ELEMENT.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_FIELD.xml
---
|
|
|
(0070851)
|
hgbot
|
2014-10-09 18:50
|
|
Repository: erp/devel/pi
Changeset: 49bb687fd5eace6902ce34b0e5c754ce4af19b65
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Oct 09 18:49:16 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/49bb687fd5eace6902ce34b0e5c754ce4af19b65 [^]
Related with issue 27788: Updates OBSERDS_DATASOURCE source data with new value
---
M modules/org.openbravo.client.application/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
---
|
|
|
(0070867)
|
hgbot
|
2014-10-10 11:45
|
|
Repository: erp/devel/pi
Changeset: 616e60ce9a707b1d34b3e809af0f96faea749c0b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Oct 10 11:33:59 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/616e60ce9a707b1d34b3e809af0f96faea749c0b [^]
Fixes issue 27788: Manual datasources can dissallow filtering by id
If the Support Filtering foreign keys by their id field of a manual datasource is checked, then in their grids the foreign key columns will always be filtered using their identifier instead of their id.
---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-pick-and-execute-grid.js.ftl
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-grid.js.ftl
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
|
|
|
(0070868)
|
hgbot
|
2014-10-10 11:45
|
|
Repository: erp/devel/pi
Changeset: 8d7c6812b4991e11fa03b7a1022d1dbca94fadea
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Oct 10 11:45:06 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8d7c6812b4991e11fa03b7a1022d1dbca94fadea [^]
Related with issue 27788: Updates the printed name of the new field
---
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_ELEMENT.xml
M modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_FIELD.xml
---
|
|
|
|
Reopened.
In Stock Reservation > Manage Stock P&E it fails when the filter is for more than a single Storage Bin. |
|
|
|
Set to Resolved again as the problem described is not part of the regression. Selecting several rows in the filter drop down of the fks of that P&E window has never worked. |
|
|
|
Code reviewed.
Tested:
*Existent manual DS in ERP
-Return from Customer
-Return to Vendor
-Stock Reservation
-Manage Variants (does not apply as there is no FK filtering)
*New flag to warranty backwards compatibility |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|