Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5073 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thank you...

Post Terkait Replies Tampilan Aktivitas
3
Mei 21
8795
2
Agu 25
6420
1
Jun 22
8391
1
Sep 21
3264
0
Agu 21
95