Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045932Retail ModulesWeb POSpublic2021-02-22 08:572021-02-22 09:03
alostale 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0045932: OB.MobileApp is used in Business Logic code
There is still a few cases where Business Logic code is making use of OB.MobileApp, this is legacy code that should only be used in enyo's UI part.
* With pos2, generate business logic bundle
* Check occurrences of OB.MobileApp -> there should no be any occurrence
  grep "OB.MobileApp" web-jspack/org.openbravo.core2/src/generated/POS2.js
      OB.MobileApp.model.get('context').role.id
        if (OB.MobileApp.model.hasPermission(approvalType, true)) {
    } else if (OB.MobileApp && OB.MobileApp.model) {
      return OB.MobileApp.model.get('appName');
  if (OB.MobileApp.model[property] !== undefined) {
    return OB.MobileApp.model[property];
  return OB.MobileApp.model.get(property);
  return OB.MobileApp.model.hasPermission(preference, true);
      OB.MobileApp.view.waterfall('onShowPopup', {
OB.MobileApp = {
No tags attached.
related to feature request 0044980 closed adrianromero Business layer for retail 
depends on defect 0045933 new alostale local storage obtains appName from OB.MobileApp 
blocks feature request 0044751 new Retail replace enyo with react for UI framework 
Not all the children of this issue are yet resolved or closed.
Issue History
2021-02-22 08:57alostaleNew Issue
2021-02-22 08:57alostaleAssigned To => Retail
2021-02-22 08:57alostaleTriggers an Emergency Pack => No
2021-02-22 08:57alostaleRelationship addedblocks 0044751
2021-02-22 09:01alostaleRelationship addedrelated to 0044980
2021-02-22 09:03alostaleSummarydon't use OB.MobileApp in Business Logic code => OB.MobileApp is used in Business Logic code
2021-02-22 09:07alostaleRelationship addeddepends on 0045933

There are no notes attached to this issue.