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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
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.
Thank you...
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
3
may 21
|
8780 | ||
Create Journal Entries whit code
Resuelto
|
|
2
ago 25
|
6415 | |
|
1
jun 22
|
8390 | ||
|
1
sept 21
|
3262 | ||
|
0
ago 21
|
95 |