Hi, I need to know how to make any page of my site show the value of a variable that I am modifying from my controller, something like a persistent variable. Here I put what I have done.
in this case, although I put the path in '/', it never enters the method.
@http.route(['/servicios', '/'], type='http', auth='public', website=True)
def services(self, **kwargs):
var1 = 'lolo'
return request.render('modulo1.services', {'variable_persistente': var})
This question has been flagged
2
Replies
3893
Views
1- Odoo get web form or template value in controller: http://learnopenerp.blogspot.com/2018/06/odoo-get-web-form-template-value-in-controller.html
2- Odoo Web Controller: http://learnopenerp.blogspot.com/2018/08/odoo-web-controller.html
Hope this will helps you.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
मई 19
|
4237 | ||
|
|
0
जून 16
|
4908 | ||
|
|
0
मार्च 15
|
4202 | ||
|
|
0
मार्च 15
|
5379 | ||
|
|
1
अप्रैल 22
|
6148 |
Try this one: http://bit.ly/odoo-web-controller