Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
24999 Lượt xem
_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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1364
4
thg 4 24
174244
0
thg 12 23
2153
5
thg 7 25
227967
1
thg 12 22
3266