Password Odoo là gì?
Password Odoo là một chuỗi ký tự đã được mã hóa và lưu xuống database. Nó được dùng để đăng nhập vào database. Nhưng chẳng may password odoo bị thay đổi hay bạn không thể nhớ được bạn phải làm thế nào. Đối với Odoo version 9 trở lên, password odoo đã được mã hóa khi lưu xuống database. Vì vậy bạn chỉ có thể thay đổi password mới.
Bài viết này sẽ giúp bạn cách thực hiện để thay đổi password odoo để vào lại database.
Hướng dẫn thực hiện.
Tạo password mới.
Các bạn vào giao diện command line trên linux hoặc window.
Gõ python
để đăng nhập vào môi trường Python.

Nhập đoạn code sau và nhấn enter.
from passlib.context import CryptContext
print CryptContext(['pbkdf2_sha512']).encrypt('YOUR_PASSWORD')
YOUR_PASSWORD: Password bạn muốn thay đổi để đăng nhập vào database.

Update password.
Các bạn truy cập vào giao diện PgAdmin và chọn câu truy vấn để thay đổi password.

Gõ vào câu truy vấn sau để thay đổi password của Administrator.
UPDATE res_users SET password='', password_crypt='HASH' WHERE id=1;
HASH: là password đã được tạo ra ở bước trên.

Vậy là bạn có thể truy cập vào database với user Administrator và password vừa được thay đổi.
Lưu ý:
Bài viết này chỉ áp dụng cho các database sử dụng Odoo version 9 trở lên.
Nếu bạn muốn sử dụng mã hóa password odoo cho version 8.0 bạn có thể sử dụng module này.ập
Đối với các bạn không sử dụng PgAdmin, các bạn có thể sử dụng câu lệnh:
psql DATABASE_NAME
Câu lệnh trên giúp bạn đăng nhập nhập vào database để thực hiện câu truy vấn.
Kết luận.
Mình vừa hướng dẫn các bạn cách thay đổi password đăng nhập từ verion 9 trở lên. Các bạn có thể tham khảo thêm các bài viết về Odoo tại đây.
I happen to be commenting to let you understand of the perfect encounter my friend’s
daughter had browsing your blog. She noticed too many things, which included what it is like to have
an incredible coaching mood to let other individuals easily have an understanding of
a number of tortuous things. You truly did more than visitors’ expected results.
Thank you for imparting these important, safe, revealing and also fun tips on this topic to Ethel.
My site; phlebotomy certification
Hi there, just became alert to your blog through Google, and found that it’s really informative.
I am gonna watch out for brussels. I will appreciate if you
continue this in future. Lots of people will be
benefited from your writing. Cheers!
Here is my homepage: 312-50 exam
Usually I don’t learn post on blogs, but I wish to say that this write-up very forced me
to try and do so! Your writing taste has been surprised me.
Thanks, very nice post.
Also visit my website :: pass mcitp first time
I precisely wanted to appreciate you again. I’m not certain what
I would have gone through in the absence of the actual
strategies documented by you about such a topic.
It seemed to be a fearsome setting for me personally, but seeing a expert style you handled that took me to cry with contentment.
Now i’m thankful for your help as well as wish you find out what an amazing job
you’re providing teaching the mediocre ones thru a web site.
Most probably you’ve never encountered all of us.
Also visit my page; Pmp Certification Exam
порно мамки