Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0020068 | Openbravo ERP | A. Platform | public | 2012-03-20 18:48 | 2012-04-02 06:11 |
|
Reporter | maite | |
Assigned To | alostale | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0MP10 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 14580 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0020068: Products with different search key but same name are considered the same |
Description | Products with different search key but same name are considered the same |
Steps To Reproduce | 1. Create new product with search key =COM-FULLLEG-BLK-1 and name=CALF AND FORQUAD COMPRESS. Checked as Stocked.
2. Create new product with search key =COM-FULLLEG-BLK-1P and name=CALF AND FORQUAD COMPRESS. Checked as Stocked.
3. Create Goods Receipt from same organization and any BP. Add 2 lines: one per each product and any storage bin and with qty=1.
4.Go to the database and see that m_inoutline table records are correct(you can see that one line is for product COM-FULLLEG-BLK-1 and the other for product COM-FULLLEG-BLK-1P):
select io.m_product_id,p.value from m_inoutline io left join m_product p on io.m_product_id=p.m_product_id
order by io.created desc limit 2
5.After that, in window "Goods Receipt" and inside the tab "Lines", change the view type from grid to form in both lines.
6.Go again to the database and execute again the previous query.You will see that one product id and search key has change and both are the same product. The only product is the product whose search key is 'COM-FULLLEG-BLK-1'
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0019968 | 3.0MP10 | closed | alostale | Products with different search key but same name are considered the same by Product Complete selector | related to | defect | 0021553 | | closed | AugustoMauch | GenerateInvoice column is pointing to a wrong process named "Create Invoice". |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-03-20 18:48 | maite | New Issue | |
2012-03-20 18:48 | maite | Assigned To | => jonalegriaesarte |
2012-03-20 18:48 | maite | Modules | => Core |
2012-03-20 18:48 | maite | OBNetwork customer | => Yes |
2012-03-20 18:48 | maite | Support ticket | => 14580 |
2012-03-20 18:49 | maite | Issue Monitored: networkb | |
2012-03-20 18:50 | jonalegriaesarte | Assigned To | jonalegriaesarte => jecharri |
2012-03-20 18:51 | jonalegriaesarte | version | => pi |
2012-03-20 18:51 | jonalegriaesarte | Target Version | => 3.0MP10 |
2012-03-21 16:47 | alostale | Relationship added | related to 0019968 |
2012-03-21 16:47 | alostale | Assigned To | jecharri => alostale |
2012-03-21 16:58 | jecharri | Assigned To | alostale => jecharri |
2012-03-21 16:58 | jecharri | Category | 04. Warehouse management => A. Platform |
2012-03-21 16:58 | jecharri | Summary | "Create Inventory Count List" process is not correct when several products have same name => Products with different search key but same name are considered the same |
2012-03-21 16:58 | jecharri | Description Updated | bug_revision_view_page.php?rev_id=3286#r3286 |
2012-03-21 16:58 | jecharri | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3288#r3288 |
2012-03-21 16:58 | jecharri | Assigned To | jecharri => alostale |
2012-03-21 16:59 | jecharri | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3289#r3289 |
2012-03-21 17:00 | jecharri | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3290#r3290 |
2012-03-23 11:51 | alostale | Note Added: 0046670 | |
2012-03-23 11:58 | alostale | Note Added: 0046671 | |
2012-03-23 11:59 | hgbot | Checkin | |
2012-03-23 11:59 | hgbot | Note Added: 0046673 | |
2012-03-23 11:59 | hgbot | Status | new => resolved |
2012-03-23 11:59 | hgbot | Resolution | open => fixed |
2012-03-23 11:59 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a0e58b778cf63bb2eebffdcb00c11c008719d74e [^] |
2012-03-23 14:36 | maite | Note Added: 0046693 | |
2012-03-23 14:36 | maite | Status | resolved => closed |
2012-03-23 15:51 | marvintm | Note Added: 0046699 | |
2012-04-02 06:11 | hudsonbot | Checkin | |
2012-04-02 06:11 | hudsonbot | Note Added: 0047207 | |
2012-09-06 18:14 | AugustoMauch | Relationship added | related to 0021553 |
Notes |
|
|
This is the same case as 0019968: having 2 values that display the same info in the selector, being in form view for one of them, and opening form view for the other one, valueMap includes both making smartclient to fail to take the proper one.
The solution is to reimplement fix for 0019968 in a more generic way by cleaning up the valueMap for this case not only when the record is selected in the selector popup but whenever value is set. |
|
|
|
This fix reimplements fix for 0019968. 0019968 needs to be rechecked to ensure new implementation properly covers both cases. Apart of this, it doesn't add regression risk as it only affects the corner case of having multiple items in a selector with the same identifier but different ID.
Test plan:
-Re-validate 0019968
-In form create line for product 1
-In form create line for product 2
-Go to grid and select 1st line and open in form (note before the fix this was marked as modified)
-Go back to grid (before the fix autosave was done setting to this line product 2)
-Check in DB both lines still have different products. |
|
|
(0046673)
|
hgbot
|
2012-03-23 11:59
|
|
Repository: erp/devel/pi
Changeset: a0e58b778cf63bb2eebffdcb00c11c008719d74e
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Mar 23 11:53:50 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a0e58b778cf63bb2eebffdcb00c11c008719d74e [^]
fixed bug 20068: Selector doesn't work when 2 items have same identifier
Reimplemented fix for bug 19968 in a more generic way: do not only clean the valueMap
when selecting an item in the selector pop up but whenever value is set.
---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
|
|
|
(0046693)
|
maite
|
2012-03-23 14:36
|
|
|
|
|
|
|
|
|