odoo admin密码丢失
from passlib.context import CryptContext print CryptContext(['pbkdf2_sha512']).encrypt('admin')
然后把上面代码所生成的用户密码的hash值用下面的SQL覆盖数据库中的已有加密密码即可:
UPDATE res_users SET password_crypt='admin' WHERE id=2;
如果14版本以上
UPDATE res_users SET password='your new password hash' WHERE id=2;
UPDATE res_users SET password='$pbkdf2-sha512$25000$UgphbK2V0jonJMQ4h5Cy1g$QxkAh0AeJKTHDcH0Y7kxYZfIQUpQxcM15RHrd.ryi.mHY/5G9I0.V.g4eAqfehi/wWsaxULdHhjkcAgzXhzV8w' WHERE id=2;
UPDATE res_users SET password='$pbkdf2-sha512$25000$R2itFeL8n5MS4twbY4wxJg$nnbJCW2.kxmvwv99fG9Yo7dnrX6Mhk2a27kOTkCiHMyVs0YdDuYn18n7bpoxgiKOnuDtCFMLRwR3Kh1cgSaAUw' WHERE id=2;
~~~~~~~
需要odoo 实施,二开,培训 等服务
QQ:190170444