MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / createInstance

Method createInstance

src/com/odoo/App.java:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 public Odoo createInstance() {
40 Odoo odoo = null;
41 OEUser user = OEUser.current(getApplicationContext());
42 if (user != null) {
43 try {
44 odoo = new Odoo(user.getHost(), user.isAllowSelfSignedSSL());
45 odoo.authenticate(user.getUsername(), user.getPassword(),
46 user.getDatabase());
47 } catch (Exception e) {
48 e.printStackTrace();
49 }
50 }
51 return odoo;
52 }
53
54 public Odoo getOEInstance() {
55 Log.d(TAG, "App->getOEInstance()");

Callers 2

getOEInstanceMethod · 0.95
doInBackgroundMethod · 0.80

Calls 6

currentMethod · 0.95
getHostMethod · 0.95
isAllowSelfSignedSSLMethod · 0.95
getUsernameMethod · 0.95
getPasswordMethod · 0.95
getDatabaseMethod · 0.95

Tested by

no test coverage detected