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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
1
Cevapla
7779
Görünümler
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Mar 15
|
7491 | ||
|
1
Kas 24
|
2549 | ||
|
4
Nis 18
|
8724 | ||
|
0
Eki 16
|
4171 | ||
|
0
Kas 15
|
3086 |
can u elaborate more where u want user_id