Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5501 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

  • 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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 25
3827
5
груд. 15
9235
0
черв. 15
3147
0
квіт. 15
3657
0
бер. 15
3713