Odoo Help


odoo android mobile framework

on 10/26/16, 2:22 AM 1,163 views

In may application i want to call python def 

and i m doing something like these:

bg = new AccountSharing(getApplicationContext(), OUser.current(this));


 //which return true, it return false when the app is newly installed and as  in Odoologin class sets the odoo value of application class

Object o=bg.getServerDataHelper().callMethod("account.sharing","send_invite_via_email",new OArguments(),new HashMap<String, Object>(),new HashMap<String, Object>());

And i get these error:

com.test E/AndroidRuntime: FATAL EXCEPTION: IntentService[OdooRegisterService]

Process: com.test, PID: 5022 java.lang.NullPointerException: Attempt to read from field 'odoo.helper.utils.gson.OdooResult odoo.helper.utils.gson.OdooResponse.result' on a null object reference at odoo.wrapper.OdooWrapper.authenticate(OdooWrapper.java:448) at odoo.wrapper.OdooWrapper.authenticate(OdooWrapper.java:441) at com.om.OdooRegisterService.onHandleIntent(OdooRegisterService.java:52) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61)

The main issue is caused due to 


On 10/27/16, 8:12 AM

it must be called in AsyncTask or new Thread
this must resolve it

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/26/16, 2:22 AM
Seen: 1163 times
Last updated: 10/27/16, 8:13 AM