Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5493 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
3827
5
thg 12 15
9234
0
thg 6 15
3147
0
thg 4 15
3656
0
thg 3 15
3712