Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5099 Переглядів

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...

Related Posts Відповіді Переглядів Дія
3
трав. 21
8824
2
серп. 25
6442
1
черв. 22
8411
1
вер. 21
3276
0
серп. 21
95