Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0031035
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2015-10-02 14:192015-10-09 13:03
ReporteraaroncaleroView Statuspublic 
Assigned Todbaz 
PrioritynormalResolutionfixedFixed in VersionRR16Q1
StatusclosedFix in branchFixed in SCM revision96286d7ae236
ProjectionnoneETAnoneTarget VersionRR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToOrekaria
Regression levelCode review
Regression date
Regression introduced in release
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/def6db59d486662f86abaef2ac435dca19c5db5b [^]
Triggers an Emergency PackNo
Summary

0031035: Deprecation messages when logging in web pos

DescriptionWarning/Deprecation messages are shown on the javascript console, related to the OBPOS_PreCreateNewReceipt and OBPOS_PostCreateNewReceipt hooks.
These hooks are using the old hookManager API.
Steps To ReproduceLogin in web pos.
Create an empty receipt.
Verify that the following messages are shown on the browser console:
adead8f74bf0fa2fef815f78f78c7f66_WebPOS.js:2366 Deprecated (since RR14Q4): 'OB.MobileApp.model.hookManager' is a child of the model of the terminal. Please use 'OB.UTIL.HookManager' instead. More info: http://wiki.openbravo.com/wiki/How_to_Add_Hooks. [^] Hook: 'OBPOS_PreCreateNewReceipt'; line: Object.hookManager.executeHooks (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/adead8f74bf0fa2fef815f78f78c7f66_WebPOS.js:5413:14 [^]) (*,+)
2015-10-02 14:17:49.018 adead8f74bf0fa2fef815f78f78c7f66_WebPOS.js:2366 Deprecated (since RR14Q4): 'OB.MobileApp.model.hookManager' is a child of the model of the terminal. Please use 'OB.UTIL.HookManager' instead. More info: http://wiki.openbravo.com/wiki/How_to_Add_Hooks. [^] Hook: 'OBPOS_PostAddNewReceipt'; line: Object.hookManager.executeHooks (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/adead8f74bf0fa2fef815f78f78c7f66_WebPOS.js:5413:14 [^]) (*,+)
Proposed SolutionReplace the old API calls:
OB.MobileApp.model.hookManager.executeHooks('OBPOS_PreCreateNewReceipt', {
OB.MobileApp.model.hookManager.executeHooks('OBPOS_PostAddNewReceipt', {
with:
OB.UTIL.HookManager.executeHooks('OBPOS_PreCreateNewReceipt', {
OB.UTIL.HookManager.executeHooks('OBPOS_PostAddNewReceipt', {
TagsNo tags attached.
Attached Files? file icon 31035.export [^] (1,265 bytes) 2015-10-05 08:06

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0031037RR15Q4 closedmarvintm Deprecation messages when logging in web pos 
caused by defect 0030208 closedguilleaer create a hook when receipt is created in webpos 

-  Notes
(0080908)
hgbot (developer)
2015-10-08 23:53

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 96286d7ae2369fd01c0f2794ef3378a92bef1148
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Oct 05 08:00:36 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/96286d7ae2369fd01c0f2794ef3378a92bef1148 [^]

Fixed issue 31035: Hooks which were created using an old API now are using the current API

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js
---

- Issue History
Date Modified Username Field Change
2015-10-02 14:19 aaroncalero New Issue
2015-10-02 14:19 aaroncalero Assigned To => Retail
2015-10-02 14:19 aaroncalero Resolution time => 1444341600
2015-10-02 14:19 aaroncalero Triggers an Emergency Pack => No
2015-10-02 16:01 Orekaria Review Assigned To => Orekaria
2015-10-02 16:01 Orekaria Relationship added caused by 0030208
2015-10-02 16:02 Orekaria Regression level => Code review
2015-10-02 16:02 Orekaria Regression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/def6db59d486662f86abaef2ac435dca19c5db5b [^]
2015-10-02 16:02 Orekaria Assigned To Retail => guilleaer
2015-10-02 16:08 Orekaria Status new => scheduled
2015-10-02 16:10 Orekaria Resolution time 1444341600 =>
2015-10-05 08:06 guilleaer File Added: 31035.export
2015-10-07 11:00 avicente Issue Monitored: avicente
2015-10-07 12:11 agete Issue Monitored: agete
2015-10-07 13:14 dbaz Assigned To guilleaer => dbaz
2015-10-08 18:30 Orekaria Target Version => RR15Q4
2015-10-08 23:53 hgbot Checkin
2015-10-08 23:53 hgbot Note Added: 0080908
2015-10-08 23:53 hgbot Status scheduled => resolved
2015-10-08 23:53 hgbot Resolution open => fixed
2015-10-08 23:53 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/96286d7ae2369fd01c0f2794ef3378a92bef1148 [^]
2015-10-09 13:02 Orekaria Status resolved => closed
2015-10-09 13:02 Orekaria Fixed in Version => pi
2015-10-09 13:03 Orekaria Fixed in Version pi => RR16Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker