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

Odoo version 11c

(Document type: Contact, Operation: write) - (User: 9, Fields: signup_expiration, signup_type, signup_token)


get this type error when creating a new user without super ID


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

i've tried from this: self.mapped('partner_id').signup_prepare(signup_type="reset", expiration=expiration)

to this: self.sudo().mapped('partner_id').signup_prepare(signup_type="reset", expiration=expiration)

this line inside action_reset_password definition.

seems working for me.

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

Hi, did you managed to fix this? Getting the same error.


Thanks. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
3157
1
thg 3 15
5202
3
thg 7 25
1415
2
thg 3 23
4421
3
thg 3 15
13612