Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

HELP: Active/Current User not saved on OdooLogin onLoginSucessMethod #322

Open jtampinco opened 7 years ago

jtampinco commented 7 years ago

I'm having problems understanding this. I know that every time you login you pass through this method inside the OdooLogin.class.

 @Override
 public void onLoginSuccess(Odoo odoo, OUser user) {
        mApp.setOdoo(odoo, user);
        mLoginProcessStatus.setText(OResource.string(OdooLogin.this, R.string.status_login_success));
        mOdoo = odoo;

        if (accountCreator != null) {
            accountCreator.cancel(true);
        }
        accountCreator = new AccountCreator();
        accountCreator.execute(user);
 }

Now the problem is, whenever I try to go to my OdooAccountManager and get the current user. It always returns null even though I was successfully logged-in.

adam-nadar commented 7 years ago

@jtampinco what are you trying to do??

jtampinco commented 7 years ago

I am just trying to fix a login issue. On re-login the user account is not saved thus making the software crash on startup.

adam-nadar commented 7 years ago

@jtampinco can u upload the log over here?