diff --git a/src/org/openbravo/mobile/core/login/Context.java b/src/org/openbravo/mobile/core/login/Context.java
--- a/src/org/openbravo/mobile/core/login/Context.java
+++ b/src/org/openbravo/mobile/core/login/Context.java
@@ -44,8 +44,8 @@
         final JSONRowConverter converter = new JSONRowConverter(DataResolvingMode.FULL);
         JSONArray data = new JSONArray();
 
-        String hqlUser = "select u as user, img.bindaryData as img, r as role, org as organization, cli as client "
-            + "from ADUser u left outer join u.image img, ADRole r, Organization org, ADClient cli "
+        String hqlUser = "select u as user, bp.isSalesRepresentative as isSalesRepresentative, img.bindaryData as img, r as role, org as organization, cli as client "
+            + "from ADUser u left outer join u.image img left outer join u.businessPartner bp, ADRole r, Organization org, ADClient cli "
             + "where u.id = '"
             + OBContext.getOBContext().getUser().getId()
             + "' and u.active = true "
@@ -63,10 +63,12 @@
 
           JSONObject item = new JSONObject();
           item.put("user", converter.convert(qryUserObjectItem[0]));
-          item.put("img", converter.convert(qryUserObjectItem[1]));
-          item.put("role", converter.convert(qryUserObjectItem[2]));
-          item.put("organization", converter.convert(qryUserObjectItem[3]));
-          item.put("client", converter.convert(qryUserObjectItem[4]));
+          item.put("isSalesRepresentative",
+              converter.convert(qryUserObjectItem[1] == null ? false : qryUserObjectItem[1]));
+          item.put("img", converter.convert(qryUserObjectItem[2]));
+          item.put("role", converter.convert(qryUserObjectItem[3]));
+          item.put("organization", converter.convert(qryUserObjectItem[4]));
+          item.put("client", converter.convert(qryUserObjectItem[5]));
           data.put(item);
         }
         result.put("data", data);
