Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5314 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

Thanks Tarek. This helps.

Post correlati Risposte Visualizzazioni Attività
1
gen 25
1912
0
lug 22
3019
3
set 20
3613
0
mar 15
3936
2
mar 15
7136