跳至内容
菜单
此问题已终结
2 回复
4595 查看

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
1175
0
7月 22
2285
3
9月 20
2957
0
3月 15
3285
2
3月 15
6415