Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038101Retail ModulesWeb POSpublic2018-03-12 13:432018-03-19 10:59
airaceburu 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR18Q2 
marvintm
No
0038101: currentWindow is not in afterRenderContainerWindowHook if the window was defined with an empty windowmodel
Inside afterRenderContainerWindowHook the variable args.window is 'unknown' if the window has been defined with an empty windowmodel like:

OB.OBRWS.WarehouseScreenModel = OB.Model.TerminalWindowModel.extend({
  models: []
});

This is because OB.MobileApp.view.currentWindow = windowName; is not called on time due to the absence of models
Try the above description or either install a but_dev environment with: https://code.openbravo.com/private/swf-utils/file/tip/Snapshot_BUT_DEV_TIP [^] snapshot and place a breakpoint in the line:

  if (args.window === 'retail.warehousescreen' && args.parameters)
No tags attached.
Issue History
2018-03-12 13:43airaceburuNew Issue
2018-03-12 13:43airaceburuAssigned To => Retail
2018-03-12 13:43airaceburuResolution time => 1521414000
2018-03-12 13:43airaceburuTriggers an Emergency Pack => No
2018-03-12 14:14airaceburuAssigned ToRetail => airaceburu
2018-03-12 14:14airaceburuAssigned Toairaceburu => Retail
2018-03-12 14:14airaceburuDescription Updatedbug_revision_view_page.php?rev_id=16825#r16825
2018-03-13 08:50ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-03-13 08:50ranjith_qualiantech_comStatusnew => scheduled
2018-03-13 13:08marvintmReview Assigned To => marvintm
2018-03-13 13:08marvintmNote Added: 0103190
2018-03-13 13:08marvintmStatusscheduled => closed
2018-03-13 13:08marvintmResolutionopen => no change required
2018-03-15 08:28ranjith_qualiantech_comStatusclosed => new
2018-03-15 08:28ranjith_qualiantech_comResolutionno change required => open
2018-03-15 08:28ranjith_qualiantech_comStatusnew => scheduled
2018-03-15 08:29ranjith_qualiantech_comNote Added: 0103264
2018-03-15 08:29hgbotCheckin
2018-03-15 08:29hgbotNote Added: 0103265
2018-03-15 08:29hgbotStatusscheduled => resolved
2018-03-15 08:29hgbotResolutionopen => fixed
2018-03-15 08:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/84bbab63279457769a9dd61b6327cda8e13ce206 [^]
2018-03-16 14:26ranjith_qualiantech_comNote Added: 0103319
2018-03-16 14:26ranjith_qualiantech_comStatusresolved => new
2018-03-16 14:26ranjith_qualiantech_comResolutionfixed => open
2018-03-16 14:26ranjith_qualiantech_comStatusnew => scheduled
2018-03-19 10:09hgbotCheckin
2018-03-19 10:09hgbotNote Added: 0103343
2018-03-19 10:09hgbotStatusscheduled => resolved
2018-03-19 10:09hgbotResolutionopen => fixed
2018-03-19 10:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/84bbab63279457769a9dd61b6327cda8e13ce206 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1af1d8a97e1012f0ccde6c4347850f92390f7e1b [^]
2018-03-19 10:59marvintmStatusresolved => closed
2018-03-19 10:59marvintmFixed in Version => RR18Q2

Notes
(0103190)
marvintm   
2018-03-13 13:08   
It was indirectly fixed by the following issue:

https://issues.openbravo.com/view.php?id=36809 [^]
(0103264)
ranjith_qualiantech_com   
2018-03-15 08:29   
Part of the issue fixed in https://issues.openbravo.com/view.php?id=36809 [^]
(0103265)
hgbot   
2018-03-15 08:29   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 84bbab63279457769a9dd61b6327cda8e13ce206
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 15 12:59:38 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/84bbab63279457769a9dd61b6327cda8e13ce206 [^]

Fixed issue 38101 : Added Timeout for Window ready event if models is not defined

---
M web/org.openbravo.mobile.core/source/component/ob-windowview.js
---
(0103319)
ranjith_qualiantech_com   
2018-03-16 14:26   
setTimeout should not be used
(0103343)
hgbot   
2018-03-19 10:09   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1af1d8a97e1012f0ccde6c4347850f92390f7e1b
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Mar 19 14:38:57 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1af1d8a97e1012f0ccde6c4347850f92390f7e1b [^]

Fixed issue 38101 : CurrentWindow should be updated in view and model while creating the window

---
M web/org.openbravo.mobile.core/source/component/ob-windowview.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---