跳至內容
選單
此問題已被標幟
3 回覆
25004 瀏覽次數
_defaults = {
    'user_id': lambda self, cr, uid, context: uid,

need to clarify above code segment..? is it work as a function.? if yes self, cr, uid, context: uid are act as a parameters of that method.i'm confused with that phase

please help me

頭像
捨棄
最佳答案

Lambda is not in OpenERP, its belong to python and work like anonymous function

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 25
1365
4
4月 24
174252
0
12月 23
2157
5
7月 25
228002
1
12月 22
3276