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})
Pertanyaan ini telah diberikan tanda
2
Replies
3843
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
Web Controller replacement is ignored
Diselesaikan
|
|
1
Mei 19
|
4178 | |
|
|
0
Jun 16
|
4855 | ||
|
|
0
Mar 15
|
4162 | ||
|
|
0
Mar 15
|
5325 | ||
|
|
1
Apr 22
|
6084 |
Try this one: http://bit.ly/odoo-web-controller