Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4676 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

Thanks Tarek. This helps.

Related Posts Odpovědi Zobrazení Aktivita
1
led 25
1285
0
čvc 22
2403
3
zář 20
3063
0
bře 15
3373
2
bře 15
6514