跳至內容
選單
此問題已被標幟
2 回覆
4754 瀏覽次數

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
1月 25
1449
0
7月 22
2498
3
9月 20
3162
0
3月 15
3489
2
3月 15
6631