跳至内容
菜单
此问题已终结
3 回复
24963 查看
_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
1308
4
4月 24
174144
0
12月 23
2082
5
7月 25
227757
1
12月 22
3190