Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036626Retail ModulesWeb POSpublic2017-08-09 07:352017-10-24 16:53
guillermogil 
jorge-garcia 
urgentmajoralways
closedfixed 
5
 
RR17Q4 
marvintm
No
0036626: ModelReady Hook is automatically adding a number to its name
ModelReady Hook is automatically adding a number to its name.
If you move from pointOfSale to cashUp name changes from ModelReady:pointOfSale to ModelReady:cashUp but if you cancel the cashUp and go back to pointOfSale the name of the hook is now ModelReady:pointOfSale2 and it is getting updated.
1) See following video:
https://drive.google.com/file/d/0ByStPqN-0atuNENjM241NHZNLVU/view?usp=sharing [^]

2) Or follow this steps:
  2.1) Login in the webPOS
  2.2) Put this code in developers tools of chrome:
OB.UTIL.HookManager.registerHook('ModelReady:pointOfSale', function() {
  OB.UTIL.showConfirmation.display('Hello', 'Hello, I am a popup when pointOfSale window is rendered. Please, close me.', null);
});
  2.3) Enter in the cashup and cancel it. Check a popup is shown.
  2.4) Enter again in the cashup and cancel it. Check the same popup is shown.

Put a fixed name to each one
No tags attached.
Issue History
2017-08-09 07:35guillermogilNew Issue
2017-08-09 07:35guillermogilAssigned To => Retail
2017-08-09 07:35guillermogilResolution time => 1504044000
2017-08-09 07:35guillermogilTriggers an Emergency Pack => No
2017-08-09 07:37guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15626#r15626
2017-08-15 23:22rqueraltaAssigned ToRetail => rqueralta
2017-08-15 23:23rqueraltaStatusnew => scheduled
2017-08-31 09:31jorge-garciaAssigned Torqueralta => jorge-garcia
2017-08-31 09:52jorge-garciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15767#r15767
2017-08-31 12:22hgbotCheckin
2017-08-31 12:22hgbotNote Added: 0098751
2017-08-31 12:22hgbotStatusscheduled => resolved
2017-08-31 12:22hgbotResolutionopen => fixed
2017-08-31 12:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad18e7e558537c55decfe716e5d7a6b7d9e4e911 [^]
2017-09-04 09:22marvintmReview Assigned To => marvintm
2017-09-04 09:22marvintmStatusresolved => closed
2017-09-04 09:22marvintmFixed in Version => RR17Q4
2017-10-24 16:53hgbotCheckin
2017-10-24 16:53hgbotNote Added: 0100044

Notes
(0098751)
hgbot   
2017-08-31 12:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ad18e7e558537c55decfe716e5d7a6b7d9e4e911
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Aug 31 09:47:27 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad18e7e558537c55decfe716e5d7a6b7d9e4e911 [^]

Fixed issue 36626: ModelReady Hook is automatically adding a number to its name

The solution is to remove the number assigned by enyo when the hook is eceuted.

---
M web/org.openbravo.mobile.core/source/component/ob-windowview.js
---
(0100044)
hgbot   
2017-10-24 16:53   
Repository: tools/automation/pi-mobile
Changeset: cbe490361e5183ad1e3d94d95b0b0135d048ab76
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Tue Oct 24 10:40:12 2017 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/cbe490361e5183ad1e3d94d95b0b0135d048ab76 [^]

Verifies issue 36626: ModelReady Hook is automatically adding a number to its name

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I36626_VerifyModelReadyHookName.java
---