Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034411Retail ModulesWeb POSpublic2016-11-07 13:322017-03-08 18:07
jorge-garcia 
mario_castello 
normalmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0034411: [OFFLINE] The modelFunc attribute of a DataSyncModel should be dynamically generated if it's not defined
The modelFunc attribute of a DataSyncModel should be dynamically generated if it's not defined. If not, the offline is broken.
* Install Service Sequence module and it's dependencies

1) Login once in the WebPOS
2) Go offline and do a logout
3) Login again in offline mode
4) A error is shown: Cannot read property 'prototype' of undefined
5) In developers tools type this command: "OB.MobileApp.model.get('dataSyncModels')"
6) A list of object is rendered, navigate through all of them until you get in the "Service Sequence" object. Check the value of "model" is "undefined". This is wrong.
No tags attached.
Issue History
2016-11-07 13:32jorge-garciaNew Issue
2016-11-07 13:32jorge-garciaAssigned To => Retail
2016-11-07 13:32jorge-garciaTriggers an Emergency Pack => No
2017-02-14 23:48mario_castelloAssigned ToRetail => mario_castello
2017-02-14 23:49mario_castelloStatusnew => acknowledged
2017-02-14 23:49mario_castelloStatusacknowledged => scheduled
2017-02-21 15:21hgbotCheckin
2017-02-21 15:21hgbotNote Added: 0094518
2017-02-21 15:21hgbotStatusscheduled => resolved
2017-02-21 15:21hgbotResolutionopen => fixed
2017-02-21 15:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/08fe2582e89abf7886c368e3105cb58fc7859e03 [^]
2017-03-08 18:07marvintmReview Assigned To => marvintm
2017-03-08 18:07marvintmStatusresolved => closed
2017-03-08 18:07marvintmFixed in Version => RR17Q2

Notes
(0094518)
hgbot   
2017-02-21 15:21   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 08fe2582e89abf7886c368e3105cb58fc7859e03
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Tue Feb 14 16:51:47 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/08fe2582e89abf7886c368e3105cb58fc7859e03 [^]

Fixed issue 0034411: [OFFLINE] The modelFunc attribute of a DataSyncModel should be dynamically generated if it's not defined

- Added validation to all dataSyncModels defined in POS or external modules
- Create the modelFunc attribute in case that the object has not defined it

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