()
| 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()"); |
no test coverage detected