跳至內容
選單
此問題已被標幟
3 回覆
24966 瀏覽次數
_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
1312
4
4月 24
174155
0
12月 23
2082
5
7月 25
227778
1
12月 22
3214