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

I've encountered an issue using the XML-RPC API. I've successfully updated the admin login credentials with the following script:


admin_user_id = models.execute_kw(db, uid, password, 'res.users', 'search', [[['login', '=', 'admin']]])
models.execute_kw(db, uid, password, 'res.users', 'write', [admin_user_id, {'login': 'myemail@test.com', 'password': 'new_password'}])

The admin's login in "Settings/Users" reflects the new email myemail@test.com as expected. However, this change does not seem to be reflected in the top right corner "Preferences/Change My Preferences" section, where the Email still displays as admin@example.com.

I wonder if there is a solutions to this using the API (I want to  avoid using headless browsers).

Due to forum restrictions, I'm unable to post images.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 23
2454
1
thg 3 24
5991
0
thg 4 24
2321
1
thg 12 23
2802
0
thg 8 24
2062