Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0037465 | Openbravo ERP | A. Platform | public | 2017-12-12 18:06 | 2018-01-03 23:03 | ||||||||||||||
Reporter | vmromanos | ||||||||||||||||||
Assigned To | caristu | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | 3.0PR18Q1 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | alostale | ||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0037465: Same process definition in several tabs in same window sends wrong information to server | ||||||||||||||||||
Description | I have defined a window with a header and 2 tabs at the same level: Header Tab1 Tab2 An existing equivalent would be: SalesOrder Lines BasicDiscounts Tab1 and Tab2 has associated the same Process Definition. When a record is selected either in Tab1 or Tab2, the process definition detects: 1. from which tab it has been called (through the "inpTabId" parameter) 2. what is the key column name (through either "inpKeyName" or "keyColumnName" parameters) 3. and what is the record id the user has selected to run the process (getting the value of the parameter name explained before). When the process is launched for a record in Tab1 the server receives the proper context information. However, when it's launched for a record in Tab2, the server receives some context from Tab2 (the fields that are displayed) [OK], but also some context information from Tab1 [WRONG]. Actually, this wrong context from Tab1 is null because obviously the user is not in that context. It looks like, when you have the same process definition in different tabs at the same level, the server always receive the context from the first one instead of the one that is the current context from which the process was launched. Here you have an example https://pastebin.com/Kg3GgfgC [^] "TicketTax (line 31)" represents Tab1, and the context is OK. See specially: "inpTabId":"41437A37CD784E2CAE78C4F668D31986", "inpTableId":"45D52AB170B4486D99FA2A446873E7A1", "inpkeyColumnId":"Obcfr_Tickettax_ID", "inpKeyName":"inpobcfrTickettaxId", "keyColumnName":"Obcfr_Tickettax_ID", "inpobcfrTickettaxId":"5F0175D58BF84093A294CE0F57689F5A", "Obcfr_Tickettax_ID":"5F0175D58BF84093A294CE0F57689F5A" "TicketReprint (line 68)" represents Tab2, where the context is wrong. See: "inpTabId":"41437A37CD784E2CAE78C4F668D31986", <-- Same as Tab1 "inpTableId":"45D52AB170B4486D99FA2A446873E7A1", <-- Same as Tab1 "inpKeyName":"inpobcfrTickettaxId", <-- Same as Tab1 "keyColumnName":"Obcfr_Tickettax_ID", <-- Same as Tab1 "inpterminal":null, <-- From Tab1, which is null "inpdocumentno":null, "inpobcfrTickettaxId":null, "Obcfr_Tickettax_ID":null, "inptaxrate":null, "inptaxbase":null, "inptaxamt":null, | ||||||||||||||||||
Steps To Reproduce | Clone repo https://code.openbravo.com/erp/pmods/org.openbravo.certification.france [^] (rev 222d902490b7) in a retail instance. Insert any record in POS Ticket window and 2 child tabs. Press Export XML button for the child tabs. Open the files. Verify TicketTax (Tab1) is properly exported, but TicketReprint (Tab2) actually exports a TicketTax. | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2017-12-12 18:06 | vmromanos | New Issue | |||||||||||||||||
2017-12-12 18:06 | vmromanos | Assigned To | => platform | ||||||||||||||||
2017-12-12 18:06 | vmromanos | OBNetwork customer | => No | ||||||||||||||||
2017-12-12 18:06 | vmromanos | Modules | => Core | ||||||||||||||||
2017-12-12 18:06 | vmromanos | Triggers an Emergency Pack | => No | ||||||||||||||||
2017-12-12 19:07 | caristu | Assigned To | platform => caristu | ||||||||||||||||
2017-12-12 19:08 | caristu | Status | new => scheduled | ||||||||||||||||
2017-12-12 19:26 | hgbot | Checkin | |||||||||||||||||
2017-12-12 19:26 | hgbot | Note Added: 0101007 | |||||||||||||||||
2017-12-13 09:51 | hgbot | Checkin | |||||||||||||||||
2017-12-13 09:51 | hgbot | Note Added: 0101009 | |||||||||||||||||
2017-12-13 09:51 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2017-12-13 09:51 | hgbot | Resolution | open => fixed | ||||||||||||||||
2017-12-13 09:51 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6dc5085e9168c8e3d07160859ec5e094c1b98ad5 [^] | ||||||||||||||||
2017-12-13 09:52 | caristu | Review Assigned To | => alostale | ||||||||||||||||
2017-12-13 09:54 | caristu | Relationship added | related to 0021741 | ||||||||||||||||
2017-12-13 09:56 | caristu | Relationship added | related to 0027565 | ||||||||||||||||
2017-12-15 10:18 | alostale | Note Added: 0101053 | |||||||||||||||||
2017-12-15 10:18 | alostale | Status | resolved => closed | ||||||||||||||||
2017-12-15 10:18 | alostale | Fixed in Version | => 3.0PR18Q1 | ||||||||||||||||
2018-01-03 12:39 | hudsonbot | Checkin | |||||||||||||||||
2018-01-03 12:39 | hudsonbot | Note Added: 0101522 | |||||||||||||||||
2018-01-03 12:39 | hudsonbot | Checkin | |||||||||||||||||
2018-01-03 12:39 | hudsonbot | Note Added: 0101523 | |||||||||||||||||
2018-01-03 23:03 | hgbot | Checkin | |||||||||||||||||
2018-01-03 23:03 | hgbot | Note Added: 0101540 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|