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

hi all,

created a normal user through odoo's default signup form, checked contents in res_users, but not found 2 things, the 'name' field value and the default group it assigned to the newly created user, how i can query / know where are these values? and how these can be modified if needed?

note: in Settings -> Users -> Manage Users i can't see this new user

regards

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

Hi,

Res.users model is created by inheriting the model res.partner using the delegation inheritance, so if you tried to access the field like name using the query you will not get it(you will get column does not exist error), instead you have to LEFT JOIN the res.users table with res.partner table based on the partner_id field in res.users table and get the name from the partner model.

The partner_id field in the res.users model holds the id of the corresponding partner record.


To know more about delegation inheritance in odoo, see: Delegation Inheritance in Odoo

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

thank you for very useful information... now i will take care of it :)

Câu trả lời hay nhất

Hi, this might help you: https://youtu.be/An6YTH3kJD8

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 21
78
2
thg 7 25
4367
0
thg 1 23
809
0
thg 6 24
837
1
thg 4 23
1974