跳至內容
選單
此問題已被標幟
1 回覆
5522 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
3835
5
12月 15
9253
0
6月 15
3149
0
4月 15
3660
0
3月 15
3715