I use http.request.session.authenticate() for user login, and then http.requests.session.sid to get the session_id, but this session_id cannot be authenticated。
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
8007
Tampilan
Hi,
Try use the following code.
def authenticate(self, db, login, password, base_location=None):
uid = None
session_info = None
uid = request.session.authenticate(db, login, password)
session_info = request.env['ir.http'].session_info()
return session_info
Regards
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar