Hi,
I wrote this code and ask me how to push the value_to_page variable to the QWeb-Template,
that is renderd in the shop function?
In QWeb i need something like <t t-esc="value_to_page" />.
import openerp
from openerp.http import route
from openerp.http import request
class SiteCategories(openerp.addons.website_sale.controllers.main.website_sale):
@route()
def shop(self):
value_to_page = "TEST VALUE"
sup = super(SiteCategories, self).shop()
return sup
Thank you