Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4788 Lượt xem

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

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

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Tarek. This helps.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1513
0
thg 7 22
2543
3
thg 9 20
3209
0
thg 3 15
3507
2
thg 3 15
6659