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})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
2
Réponses
2922
Vues
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.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
mai 19
|
3130 | ||
|
0
juin 16
|
3993 | ||
|
0
mars 15
|
3410 | ||
|
0
mars 15
|
4489 | ||
|
1
avr. 22
|
5250 |
Try this one: http://bit.ly/odoo-web-controller