Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5508 Visualizzazioni

I have installed auth_signup module to ensure signup functionality, but when I am trying to signup a new user either public user or template user, I am getting an exception. By investing on this I found that in
auth_signup/res_users.py , exception is where the following line of code are:

try:
    with cr.savepoint():
        return self.copy(cr, uid, template_user_id, values, context=context)

 I don't why cr.savepoint is returning None

Avatar
Abbandona
Risposta migliore

  • In My case i used below code.

request.env.cr.commit()   # as authenticate will use its own cursor we need to commit the current transaction

 It will save the user in database at current stage.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 25
3830
5
dic 15
9236
0
giu 15
3148
0
apr 15
3657
0
mar 15
3713