İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5302 Görünümler

How it is using when we  super a function?

With .qcontext how we can pass values to templates

What is the use of context and .qcontext in controller of odoo12?

Avatar
Vazgeç
En İyi Yanıt

If any route is passing a value to the template and you want to update the value before passing it to the template, you can just override the route.

Now, question is how would you update the value since super returns the rendered template? Answer is, using qcontext you can update the value.

Context is something that stores the user related details like company, timezone, etc. Normally context is useful to pass any value in the ORM / user define methods.

Avatar
Vazgeç
Üretici

Thank you...

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
May 21
9156
2
Ağu 25
6866
1
Haz 22
8790
1
Eyl 21
3638
0
Ağu 21
95