تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4758 أدوات العرض

Could someone please explain the significance of context

for e.g.

self.write(cr,uid,ids,vals,context)

I thought it was to set the correct create_date and create_uid in the database, but it doesn't seem to have any impact even when I remove context from the function call

الصورة الرمزية
إهمال
أفضل إجابة

context is used to pass data to methods, pls check this topic for more explanation

الصورة الرمزية
إهمال
الكاتب

Thanks Tarek. This helps.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 25
1454
0
يوليو 22
2502
3
سبتمبر 20
3168
0
مارس 15
3493
2
مارس 15
6634