Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034270Retail ModulesWeb POSpublic2016-10-21 12:292016-11-22 19:12
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR17Q1RR17Q1 
marvintm
No
No
0034270: Make it easier to enable offline in a module
Currently a user needs to write specific code to make his/her module offline capable:

Implement a specific POSAppCacheResourceProvider adding code to read css/img etc. See attached file for an example.

And in some cases also implement a MobileCoreApplicationCacheComponent.

See mobile warehouse module recent developments as an example.
- Move the POSAppCacheResourceProvider concept to mobile.core
- Provide a base implementation for the AppCacheResourceProvider so that it is easier for a module to extend it without much code

This also allows modules to add offline behavior to for example mobile warehouse or procurement.
No tags attached.
? OrderPreparationAppCacheProvider.java (2,366) 2016-10-21 12:29
https://issues.openbravo.com/file_download.php?file_id=9947&type=bug
Issue History
2016-10-21 12:29mtaalNew Issue
2016-10-21 12:29mtaalAssigned To => mtaal
2016-10-21 12:29mtaalOBNetwork customer => No
2016-10-21 12:29mtaalTriggers an Emergency Pack => No
2016-10-21 12:29mtaalFile Added: OrderPreparationAppCacheProvider.java
2016-10-23 11:15hgbotCheckin
2016-10-23 11:15hgbotNote Added: 0090789
2016-10-23 11:15hgbotStatusnew => resolved
2016-10-23 11:15hgbotResolutionopen => fixed
2016-10-23 11:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6e967b9921b3bc52521240dbac032777708e5cf5 [^]
2016-10-23 11:16hgbotCheckin
2016-10-23 11:16hgbotNote Added: 0090790
2016-10-24 16:03mtaalReview Assigned To => marvintm
2016-11-02 12:10hgbotCheckin
2016-11-02 12:10hgbotNote Added: 0091058
2016-11-02 12:11hgbotCheckin
2016-11-02 12:11hgbotNote Added: 0091059
2016-11-02 12:13hgbotCheckin
2016-11-02 12:13hgbotNote Added: 0091060
2016-11-22 19:12marvintmStatusresolved => closed
2016-11-22 19:12marvintmFixed in Version => RR17Q1

Notes
(0090789)
hgbot   
2016-10-23 11:15   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6e967b9921b3bc52521240dbac032777708e5cf5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 23 11:14:22 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6e967b9921b3bc52521240dbac032777708e5cf5 [^]

Fixes issue 34270: Make it easier to enable offline in a module
Move generic application cache component to mobile core from posterminal. Move also the extension mechanism which allows modules to more easily add artifacts to the appcache, to mobile core from posterminal.
Provide a base app cache resource provider which has the generic code needed by modules. A module only needs to extend this class and does not need to add logic to have most artifacts made available offline.

MobileCoreApplicationCacheComponent.java: code from pos terminal application cache component
cache-manifest.ftl: change to allow additional resources to be added to the appcache
BaseCoreAppCacheResourceProvider.java: base implementation of appcacheresourceprovider to be extended by modules
CoreAppCacheResourceProvider.java: the base interface for appcacheresourceproviders, is a 'move' from posterminal to mobile core to make it more generic

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
M src/org/openbravo/mobile/core/templates/cache-manifest.ftl
A src/org/openbravo/mobile/core/BaseCoreAppCacheResourceProvider.java
A src/org/openbravo/mobile/core/CoreAppCacheResourceProvider.java
---
(0090790)
hgbot   
2016-10-23 11:16   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1f02e304aa83528c012c80ec5e1d11324b5bdf61
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 23 11:15:42 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1f02e304aa83528c012c80ec5e1d11324b5bdf61 [^]

Related to issue 34270: Make it easier to enable offline in a module
Code has been moved to mobile.core.

---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
M src/org/openbravo/retail/posterminal/POSAppCacheResourceProvider.java
---
(0091058)
hgbot   
2016-11-02 12:10   
Repository: erp/pmods/org.openbravo.retail.complementary
Changeset: c11651f11ef3b4d30b30b4cddbc0188143e929c5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:10:01 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/c11651f11ef3b4d30b30b4cddbc0188143e929c5 [^]

Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency

---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/complementary/ComplementaryAppCacheProvider.java
---
(0091059)
hgbot   
2016-11-02 12:11   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 007879f6bd8cc10ed44f9827c989821960938841
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:10:51 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/007879f6bd8cc10ed44f9827c989821960938841 [^]

Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency

---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/discounts/combo/master/CombosAppCacheProvider.java
---
(0091060)
hgbot   
2016-11-02 12:13   
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: 15cdff4107c4a381342e6f049ae8f660b8ed52d2
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 02 12:12:19 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/15cdff4107c4a381342e6f049ae8f660b8ed52d2 [^]

Related to issue 34270: Make it easier to enable offline in a module
Resolve depracation warning and set module dependency

---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/retail/discounts/bytotal/master/DiscountsByTotalAppCacheProvider.java
---