Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040746Openbravo ERP[Modules] Advanced Warehouse Operationspublic2019-05-02 12:582019-09-23 14:02
Leyre 
cberner 
highminoralways
closedfixed 
5
 
3.0PR19Q4 
AugustoMauch
Core
No
0040746: Problem when a process executed in a subtab, request without pagination done to datasource
When a process defined in a subtab deletes the record open in its parent tab, an error is shown in the console, and the header tab is left in an inconsistent state.

This happens in AWO when a task is confirmed with 'Confirmed Quantity' = 0, in the Warehouse Operation window.

Simpler steps to reproduce:
- Install the attached module
- Create a business partner. Open it in form view
- Open its Contact subtab and create a contact
- Open the debugger tools, show the console tab
- Click on the Delete Parent Business Partner button
- Check that an error appears in the console, and that the header tab shows an empty record


Original Steps to reproduce:
BACKEND:

- Open a new Warehouse Operation ('Warehouse Operation' window)
- Count
- A new Task is created
- Open the Task
- Close and open again the Warehouse Operation (the record, not the window)
- Set Confirmed Quantity = 0
- Confirm the task
- Open the browser console, and verify that there are errors - Look at the attached image
- If the header record is removed (this can be detected if the request to refresh the parent record returns 0 rows), change the view to grid view
No tags attached.
png ErrorCloseOpen.png (129,204) 2019-05-02 12:58
https://issues.openbravo.com/file_download.php?file_id=12907&type=bug
png

rar org.openbravo.issue40746.rar (4,908) 2019-05-08 16:44
https://issues.openbravo.com/file_download.php?file_id=12926&type=bug
png CDS.png (103,847) 2019-05-10 13:03
https://issues.openbravo.com/file_download.php?file_id=12938&type=bug
png
Issue History
2019-05-02 12:58LeyreNew Issue
2019-05-02 12:58LeyreAssigned To => Triage Finance
2019-05-02 12:58LeyreFile Added: ErrorCloseOpen.png
2019-05-02 12:58LeyreResolution time => 1558562400
2019-05-02 14:41SandrahuguetAssigned ToTriage Finance => nonofrancisco
2019-05-06 09:35LeyreSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18708#r18708
2019-05-06 16:27LeyreNote Added: 0111506
2019-05-06 16:27LeyreSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18716#r18716
2019-05-06 16:28LeyreNote Edited: 0111506bug_revision_view_page.php?bugnote_id=0111506#r18718
2019-05-07 17:05SandrahuguetResolution time1558562400 =>
2019-05-07 17:05SandrahuguetAssigned Tononofrancisco => platform
2019-05-07 17:05SandrahuguetSeveritymajor => minor
2019-05-08 16:44AugustoMauchFile Added: org.openbravo.issue40746.rar
2019-05-08 16:49AugustoMauchSummaryProblem when a task is confirmed with 'Confirmed Quantity' = 0, in the Warehouse Operation window => Problem when a process executed in a subtab
2019-05-08 16:49AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=18732#r18732
2019-05-08 16:49AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18733#r18733
2019-05-08 16:49AugustoMauchProposed Solution updated
2019-05-10 13:03LeyreFile Added: CDS.png
2019-05-10 13:10AugustoMauchSummaryProblem when a process executed in a subtab => Problem when a process executed in a subtab, request without pagination done to datasource
2019-05-13 13:03martinsdanIssue Monitored: martinsdan
2019-09-02 10:18shuehnerIssue Monitored: shuehner
2019-09-02 12:39cbernerAssigned Toplatform => cberner
2019-09-02 12:39cbernerStatusnew => acknowledged
2019-09-04 17:58cbernerStatusacknowledged => scheduled
2019-09-18 13:42hgbotCheckin
2019-09-18 13:42hgbotNote Added: 0114638
2019-09-18 13:42hgbotStatusscheduled => resolved
2019-09-18 13:42hgbotResolutionopen => fixed
2019-09-18 13:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7ab00424ec1834febf6c5587364f9b81e6edc43e [^]
2019-09-18 13:42AugustoMauchReview Assigned To => AugustoMauch
2019-09-18 13:43AugustoMauchProjectModules => Openbravo ERP
2019-09-18 13:44AugustoMauchNote Added: 0114639
2019-09-18 13:44AugustoMauchStatusresolved => closed
2019-09-18 13:44AugustoMauchFixed in Version => 3.0PR19Q4
2019-09-23 14:02hudsonbotCheckin
2019-09-23 14:02hudsonbotNote Added: 0114726
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0111506)
Leyre   
2019-05-06 16:27   
(edited on: 2019-05-06 16:28)
Backend: https://livebuilds.openbravo.com/retail_modules_pgsql_pi [^]
User:Openbravo
Role: AWO

(0114638)
hgbot   
2019-09-18 13:42   
Repository: erp/devel/pi
Changeset: 7ab00424ec1834febf6c5587364f9b81e6edc43e
Author: Cristian Berner <cristian.berner <at> openbravo.com>
Date: Thu Sep 05 09:54:55 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7ab00424ec1834febf6c5587364f9b81e6edc43e [^]

fixes issue 40746: When subtab process deletes parent record view is refreshed

When a subtab process deletes its parent record, parent view is refreshed correctly.
If parent was in Form view, it is switched to grid view, an info message is shown and the grid refreshes to show the change.
If parent was in Grid view, view is refreshed to show the changes.

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0114639)
AugustoMauch   
2019-09-18 13:44   
Code reviewed and verified
(0114726)
hudsonbot   
2019-09-23 14:02   
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/1a0e045ce34f [^]
Maturity status: Test