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
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2
답글
3026
화면
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.
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
5월 19
|
3196 | ||
|
0
6월 16
|
4060 | ||
|
0
3월 15
|
3467 | ||
|
0
3월 15
|
4557 | ||
|
1
4월 22
|
5309 |
Try this one: http://bit.ly/odoo-web-controller