How can we access currently logined user id in openerp ?
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
7785
Tampilan
For an example, look at the code in: ./addons/base_status/base_state.py
def _get_default_user(self, cr, uid, context=None):
""" Gives current user id
:param context: if portal not in context returns False
"""
if context is None:
context = {}
if not context or not context.get('portal'):
return False
return uid
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Mar 15
|
7492 | ||
Odoo Community Edition 18 Adding Users Without Email
Diselesaikan
|
|
1
Nov 24
|
2556 | |
User login always fail even after password reset
Diselesaikan
|
|
4
Apr 18
|
8728 | |
|
0
Okt 16
|
4171 | ||
|
0
Nov 15
|
3086 |
can u elaborate more where u want user_id