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
- 会計
- 在庫
- PoS
- プロジェクト
- MRP
この質問にフラグが付けられました
1
返信
7867
ビュー
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
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
3月 15
|
7743 | ||
|
1
11月 24
|
3154 | ||
|
4
4月 18
|
9012 | ||
|
0
10月 16
|
4371 | ||
|
0
11月 15
|
3276 |
can u elaborate more where u want user_id