تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
24960 أدوات العرض
_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
مارس 25
1306
4
أبريل 24
174143
0
ديسمبر 23
2082
5
يوليو 25
227749
1
ديسمبر 22
3188