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
返信
2941
ビュー
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
|
3140 | ||
|
0
6月 16
|
4006 | ||
|
0
3月 15
|
3417 | ||
|
0
3月 15
|
4498 | ||
|
1
4月 22
|
5258 |
Try this one: http://bit.ly/odoo-web-controller