Let´s say I authenticate in Odoo as user A. Then I call a method in a model. Then I want to call another method in another model, but as a different user.
Something like:
def my_model_method(self, cr, uid):
other_user_id = authenticate(other_user_login, other_user_password) # authenticate as another user
modelXHandler.othermethod(cr, other_user_id, parameters) # Call another method as the other user
Thanks a lot Axel.
I will try that.