diff -r bbbe22655371 src-db/database/sourcedata/OBMOBC_PROCESS_DEFINITION.xml
--- a/src-db/database/sourcedata/OBMOBC_PROCESS_DEFINITION.xml	Wed Nov 14 10:09:02 2018 +0100
+++ b/src-db/database/sourcedata/OBMOBC_PROCESS_DEFINITION.xml	Mon Dec 10 12:28:59 2018 +0100
@@ -9,6 +9,7 @@
 <!--661A8622C10D4CA78AEBC92223945272-->  <SEARCHKEY><![CDATA[updatePendingMultiOrders]]></SEARCHKEY>
 <!--661A8622C10D4CA78AEBC92223945272-->  <NAME><![CDATA[Update Pending MultiOrders]]></NAME>
 <!--661A8622C10D4CA78AEBC92223945272-->  <DESCRIPTION><![CDATA[Calculation of the pending amount to pay for Multi Orders]]></DESCRIPTION>
+<!--661A8622C10D4CA78AEBC92223945272-->  <TERMINALLOG><![CDATA[N]]></TERMINALLOG>
 <!--661A8622C10D4CA78AEBC92223945272--></OBMOBC_PROCESS_DEFINITION>
 
 <!--7EAA2CD8D4E94FAC8D4F289BD09B03ED--><OBMOBC_PROCESS_DEFINITION>
@@ -20,6 +21,7 @@
 <!--7EAA2CD8D4E94FAC8D4F289BD09B03ED-->  <SEARCHKEY><![CDATA[cancelLayaway]]></SEARCHKEY>
 <!--7EAA2CD8D4E94FAC8D4F289BD09B03ED-->  <NAME><![CDATA[Cancel Layaway]]></NAME>
 <!--7EAA2CD8D4E94FAC8D4F289BD09B03ED-->  <DESCRIPTION><![CDATA[Cancel a Layaway canceling the order and payments]]></DESCRIPTION>
+<!--7EAA2CD8D4E94FAC8D4F289BD09B03ED-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--7EAA2CD8D4E94FAC8D4F289BD09B03ED--></OBMOBC_PROCESS_DEFINITION>
 
 <!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9--><OBMOBC_PROCESS_DEFINITION>
@@ -31,8 +33,33 @@
 <!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9-->  <SEARCHKEY><![CDATA[clearWith]]></SEARCHKEY>
 <!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9-->  <NAME><![CDATA[Clear current order]]></NAME>
 <!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9-->  <DESCRIPTION><![CDATA[Clear the current order with the order passed by parameters]]></DESCRIPTION>
+<!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--A0CB57A0CAC24EE0AD0F3902FDC9A6C9--></OBMOBC_PROCESS_DEFINITION>
 
+<!--A59A7C9261134100A06BF8D51AE26F7F--><OBMOBC_PROCESS_DEFINITION>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[A59A7C9261134100A06BF8D51AE26F7F]]></OBMOBC_PROCESS_DEFINITION_ID>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <AD_MODULE_ID><![CDATA[FF808181326CC34901326D53DBCF0018]]></AD_MODULE_ID>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <SEARCHKEY><![CDATA[searchProduct]]></SEARCHKEY>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <NAME><![CDATA[Search Product]]></NAME>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <DESCRIPTION><![CDATA[When doing a search in the product selector]]></DESCRIPTION>
+<!--A59A7C9261134100A06BF8D51AE26F7F-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
+<!--A59A7C9261134100A06BF8D51AE26F7F--></OBMOBC_PROCESS_DEFINITION>
+
+<!--A71D33B9E776497F918C10BE7DA20B36--><OBMOBC_PROCESS_DEFINITION>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[A71D33B9E776497F918C10BE7DA20B36]]></OBMOBC_PROCESS_DEFINITION_ID>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <AD_MODULE_ID><![CDATA[FF808181326CC34901326D53DBCF0018]]></AD_MODULE_ID>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <SEARCHKEY><![CDATA[addPayment]]></SEARCHKEY>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <NAME><![CDATA[Add Payment]]></NAME>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <DESCRIPTION><![CDATA[When adding a payment to the current order]]></DESCRIPTION>
+<!--A71D33B9E776497F918C10BE7DA20B36-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
+<!--A71D33B9E776497F918C10BE7DA20B36--></OBMOBC_PROCESS_DEFINITION>
+
 <!--B0EA6F15EED14D38B80B433D196995FC--><OBMOBC_PROCESS_DEFINITION>
 <!--B0EA6F15EED14D38B80B433D196995FC-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[B0EA6F15EED14D38B80B433D196995FC]]></OBMOBC_PROCESS_DEFINITION_ID>
 <!--B0EA6F15EED14D38B80B433D196995FC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -42,8 +69,21 @@
 <!--B0EA6F15EED14D38B80B433D196995FC-->  <SEARCHKEY><![CDATA[updatePending]]></SEARCHKEY>
 <!--B0EA6F15EED14D38B80B433D196995FC-->  <NAME><![CDATA[Update Pending]]></NAME>
 <!--B0EA6F15EED14D38B80B433D196995FC-->  <DESCRIPTION><![CDATA[Calculation of the pending amount to pay]]></DESCRIPTION>
+<!--B0EA6F15EED14D38B80B433D196995FC-->  <TERMINALLOG><![CDATA[N]]></TERMINALLOG>
 <!--B0EA6F15EED14D38B80B433D196995FC--></OBMOBC_PROCESS_DEFINITION>
 
+<!--B78DFFBF289449DDAD7FADC046C7C14B--><OBMOBC_PROCESS_DEFINITION>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[B78DFFBF289449DDAD7FADC046C7C14B]]></OBMOBC_PROCESS_DEFINITION_ID>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <AD_MODULE_ID><![CDATA[FF808181326CC34901326D53DBCF0018]]></AD_MODULE_ID>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <SEARCHKEY><![CDATA[searchCustomer]]></SEARCHKEY>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <NAME><![CDATA[Search Customer]]></NAME>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <DESCRIPTION><![CDATA[When doing a search in the customer selector]]></DESCRIPTION>
+<!--B78DFFBF289449DDAD7FADC046C7C14B-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
+<!--B78DFFBF289449DDAD7FADC046C7C14B--></OBMOBC_PROCESS_DEFINITION>
+
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26--><OBMOBC_PROCESS_DEFINITION>
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[BBFD1B0C45B7454994D67E6C9FBA2D26]]></OBMOBC_PROCESS_DEFINITION_ID>
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -53,6 +93,7 @@
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <SEARCHKEY><![CDATA[calculateReceipt]]></SEARCHKEY>
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <NAME><![CDATA[Calculate Receipt]]></NAME>
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <DESCRIPTION><![CDATA[Calculation of all discounts, taxes, net, gross ... are calcuted]]></DESCRIPTION>
+<!--BBFD1B0C45B7454994D67E6C9FBA2D26-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--BBFD1B0C45B7454994D67E6C9FBA2D26--></OBMOBC_PROCESS_DEFINITION>
 
 <!--C8DDB7E5DF124999A0A64B70EE9C1684--><OBMOBC_PROCESS_DEFINITION>
@@ -64,8 +105,21 @@
 <!--C8DDB7E5DF124999A0A64B70EE9C1684-->  <SEARCHKEY><![CDATA[showPaymentTab]]></SEARCHKEY>
 <!--C8DDB7E5DF124999A0A64B70EE9C1684-->  <NAME><![CDATA[Show payment tab]]></NAME>
 <!--C8DDB7E5DF124999A0A64B70EE9C1684-->  <DESCRIPTION><![CDATA[Show the payment panel in the rigth side]]></DESCRIPTION>
+<!--C8DDB7E5DF124999A0A64B70EE9C1684-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--C8DDB7E5DF124999A0A64B70EE9C1684--></OBMOBC_PROCESS_DEFINITION>
 
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F--><OBMOBC_PROCESS_DEFINITION>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[D84FB7E63EF34DAE9ECBAFE24B768D6F]]></OBMOBC_PROCESS_DEFINITION_ID>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <AD_MODULE_ID><![CDATA[FF808181326CC34901326D53DBCF0018]]></AD_MODULE_ID>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <SEARCHKEY><![CDATA[searchCustomerAddress]]></SEARCHKEY>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <NAME><![CDATA[Search Customer Address]]></NAME>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <DESCRIPTION><![CDATA[When doing a search in the customer address selector]]></DESCRIPTION>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
+<!--D84FB7E63EF34DAE9ECBAFE24B768D6F--></OBMOBC_PROCESS_DEFINITION>
+
 <!--E602ED1A21C64564BB565B5E9BB16E39--><OBMOBC_PROCESS_DEFINITION>
 <!--E602ED1A21C64564BB565B5E9BB16E39-->  <OBMOBC_PROCESS_DEFINITION_ID><![CDATA[E602ED1A21C64564BB565B5E9BB16E39]]></OBMOBC_PROCESS_DEFINITION_ID>
 <!--E602ED1A21C64564BB565B5E9BB16E39-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -75,6 +129,7 @@
 <!--E602ED1A21C64564BB565B5E9BB16E39-->  <SEARCHKEY><![CDATA[cashupWindow]]></SEARCHKEY>
 <!--E602ED1A21C64564BB565B5E9BB16E39-->  <NAME><![CDATA[Cashup Window Loaded]]></NAME>
 <!--E602ED1A21C64564BB565B5E9BB16E39-->  <DESCRIPTION><![CDATA[Loading of the Cashup window]]></DESCRIPTION>
+<!--E602ED1A21C64564BB565B5E9BB16E39-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--E602ED1A21C64564BB565B5E9BB16E39--></OBMOBC_PROCESS_DEFINITION>
 
 <!--F39A8C9151CB43CCA360A44C0E7D848B--><OBMOBC_PROCESS_DEFINITION>
@@ -86,6 +141,7 @@
 <!--F39A8C9151CB43CCA360A44C0E7D848B-->  <SEARCHKEY><![CDATA[addProduct]]></SEARCHKEY>
 <!--F39A8C9151CB43CCA360A44C0E7D848B-->  <NAME><![CDATA[Add product]]></NAME>
 <!--F39A8C9151CB43CCA360A44C0E7D848B-->  <DESCRIPTION><![CDATA[When adding a product to the current order]]></DESCRIPTION>
+<!--F39A8C9151CB43CCA360A44C0E7D848B-->  <TERMINALLOG><![CDATA[Y]]></TERMINALLOG>
 <!--F39A8C9151CB43CCA360A44C0E7D848B--></OBMOBC_PROCESS_DEFINITION>
 
 </data>
diff -r bbbe22655371 web/org.openbravo.retail.posterminal/js/components/bplocation.js
--- a/web/org.openbravo.retail.posterminal/js/components/bplocation.js	Wed Nov 14 10:09:02 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/components/bplocation.js	Mon Dec 10 12:28:59 2018 +0100
@@ -707,6 +707,7 @@
     return true;
   },
   searchAction: function (inSender, inEvent) {
+    var execution = OB.UTIL.ProcessController.start('searchCustomerAddress');
     var me = this,
         criteria = {},
         filter = inEvent.locName;
@@ -765,6 +766,7 @@
       criteria.remoteFilters = remoteCriteria;
     }
     OB.Dal.find(OB.Model.BPLocation, criteria, successCallbackBPsLoc, errorCallback);
+    OB.UTIL.ProcessController.finish('searchCustomerAddress', execution);
     return true;
   },
   bpsList: null,
diff -r bbbe22655371 web/org.openbravo.retail.posterminal/js/components/bplocationship.js
--- a/web/org.openbravo.retail.posterminal/js/components/bplocationship.js	Wed Nov 14 10:09:02 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/components/bplocationship.js	Mon Dec 10 12:28:59 2018 +0100
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2012-2017 Openbravo S.L.U.
+ * Copyright (C) 2012-2018 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -58,6 +58,7 @@
     return true;
   },
   searchAction: function (inSender, inEvent) {
+    var execution = OB.UTIL.ProcessController.start('searchCustomerAddress');
     var me = this,
         criteria = {},
         filter = inEvent.locName;
@@ -107,6 +108,7 @@
       criteria.remoteFilters = remoteCriteria;
     }
     OB.Dal.find(OB.Model.BPLocation, criteria, successCallbackBPsLoc, errorCallback);
+    OB.UTIL.ProcessController.finish('searchCustomerAddress', execution);
     return true;
   },
   bpsList: null,
diff -r bbbe22655371 web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js
--- a/web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js	Wed Nov 14 10:09:02 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js	Mon Dec 10 12:28:59 2018 +0100
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2016-2017 Openbravo S.L.U.
+ * Copyright (C) 2016-2018 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -480,6 +480,7 @@
     return true;
   },
   searchAction: function (inSender, inEvent) {
+    var execution = OB.UTIL.ProcessController.start('searchCustomer');
     var me = this;
 
     if (OB.MobileApp.model.hasPermission('OBPOS_retail.createCustomerButton', true)) {
@@ -671,7 +672,7 @@
       }
       OB.Dal.query(OB.Model.BPartnerFilter, select + orderby, params, successCallbackBPs, errorCallback, null, null, limit);
     }
-
+    OB.UTIL.ProcessController.finish('searchCustomer', execution);
     return true;
   },
   bpsList: null,
diff -r bbbe22655371 web/org.openbravo.retail.posterminal/js/login/model/login-model.js
--- a/web/org.openbravo.retail.posterminal/js/login/model/login-model.js	Wed Nov 14 10:09:02 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/login/model/login-model.js	Mon Dec 10 12:28:59 2018 +0100
@@ -332,6 +332,17 @@
         }
       });
 
+      // move terminal log model to the end of models to sync since has less priority
+      var i, indexTerminalLogModel = -1;
+      for (i = 0; i < this.get('dataSyncModels').length; i++) {
+        if (this.get('dataSyncModels')[i].name === "OBMOBC_TerminalLog") {
+          indexTerminalLogModel = i;
+        }
+      }
+      if (indexTerminalLogModel !== -1) {
+        this.get('dataSyncModels').push(this.get('dataSyncModels').splice(indexTerminalLogModel, 1)[0]);
+      }
+
       this.on('ready', function () {
         OB.debug("next process: 'retail.pointofsale' window");
         if (this.get('terminal').currencyFormat) {
@@ -453,7 +464,6 @@
         OB.UTIL.HookManager.executeHooks('OBPOS_PreSynchData', {}, function () {
           OB.debug('runSyncProcess: synchronize all models');
           OB.MobileApp.model.syncAllModels(function () {
-            OB.info('runSyncProcess: synchronization successfully done');
             executeCallbacks(true, me.get('syncProcessCallbacks'), function () {
               me.pendingSyncProcess = false;
             });
@@ -532,7 +542,7 @@
     },
 
     postSyncProcessActions: function () {
-      if (OB.MobileApp.model.get('context').user && _.isUndefined(OB.MobileApp.model.get('context').user.isSalesRepresentative)) {
+      if (OB.MobileApp.model.get('context') && OB.MobileApp.model.get('context').user && _.isUndefined(OB.MobileApp.model.get('context').user.isSalesRepresentative)) {
         OB.Dal.get(OB.Model.SalesRepresentative, OB.MobileApp.model.usermodel.get('id'), function (salesrepresentative) {
           if (!salesrepresentative) {
             OB.MobileApp.model.get('context').user.isSalesRepresentative = false;
diff -r bbbe22655371 web/org.openbravo.retail.posterminal/js/model/order.js
--- a/web/org.openbravo.retail.posterminal/js/model/order.js	Wed Nov 14 10:09:02 2018 +0100
+++ b/web/org.openbravo.retail.posterminal/js/model/order.js	Mon Dec 10 12:28:59 2018 +0100
@@ -1046,6 +1046,7 @@
 
     clearWith: function (_order) {
       var execution = OB.UTIL.ProcessController.start('clearWith');
+
       // verify that the clearWith is not used for any other purpose than to update and fire the events of the UI receipt
       OB.UTIL.Debug.execute(function () {
         var isTheUIReceipt = this.cid === OB.MobileApp.model.receipt.cid;
@@ -6543,6 +6544,7 @@
       }
     },
     loadCurrent: function (isNew) {
+      OB.MobileApp.model.set('terminalLogContext', this.current.get('documentNo'));
       // Check if the current order to be loaded should be deleted
       if (this.current.get('obposIsDeleted') && this.current.get('id')) {
         var deletedOrderDocNo = this.current.get('documentNo');
@@ -6970,19 +6972,23 @@
       }
     },
     addPayment: function (payment, callback) {
+      var execution = OB.UTIL.ProcessController.start('addPayment');
       var i, max, p, order, payments, total, finalCallback;
 
       if (!OB.DEC.isNumber(payment.get('amount'))) {
         OB.UTIL.showWarning(OB.I18N.getLabel('OBPOS_MsgPaymentAmountError'));
+        OB.UTIL.ProcessController.finish('addPayment', execution);
         return;
       }
       if (this.stopAddingPayments) {
         OB.UTIL.showWarning(OB.I18N.getLabel('OBPOS_CannotAddPayments'));
+        OB.UTIL.ProcessController.finish('addPayment', execution);
         return;
       }
 
       if (!payment.get('isReversePayment') && this.getPending() <= 0 && payment.get('amount') > 0) {
         OB.UTIL.showWarning(OB.I18N.getLabel('OBPOS_PaymentsExact'));
+        OB.UTIL.ProcessController.finish('addPayment', execution);
         return;
       }
 
@@ -7012,6 +7018,7 @@
 
         if (args && args.cancellation) {
           executeFinalCallback();
+          OB.UTIL.ProcessController.finish('addPayment', execution);
           return;
         }
 
@@ -7029,6 +7036,7 @@
               order.adjustPayment();
               order.trigger('displayTotal');
               executeFinalCallback();
+              OB.UTIL.ProcessController.finish('addPayment', execution);
               return;
             }
           }
@@ -7044,6 +7052,7 @@
               order.adjustPayment();
               order.trigger('displayTotal');
               executeFinalCallback();
+              OB.UTIL.ProcessController.finish('addPayment', execution);
               return;
             }
           }
@@ -7058,6 +7067,7 @@
         order.adjustPayment();
         order.trigger('displayTotal');
         executeFinalCallback();
+        OB.UTIL.ProcessController.finish('addPayment', execution);
         return;
       });
     },
