[IMP] website_project multilang

bzr revid: fme@openerp.com-20130926163606-3qhf03p9u43hygap
This commit is contained in:
Fabien Meghazi
2013-09-26 18:36:06 +02:00
parent 70cf46fb94
commit 7b28f77b1e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ class Website(osv.Model):
class website_project(http.Controller):
@website.route(['/project/<int:project_id>/'], type='http', auth="public")
@website.route(['/project/<int:project_id>/'], type='http', auth="public", multilang=True)
def project(self, project_id=None, **post):
cr, uid, context = request.cr, request.uid, request.context
project_obj = request.registry['project.project']
@@ -51,7 +51,7 @@ class website_project(http.Controller):
}
return request.website.render("website_project.index", render_values)
@website.route(['/project/task/<int:task_id>'], type='http', auth="public")
@website.route(['/project/task/<int:task_id>'], type='http', auth="public", multilang=True)
def task(self, task_id=None, **post):
cr, uid, context = request.cr, request.uid, request.context
task_obj = request.registry['project.task']
@@ -5,7 +5,7 @@
<!-- Layout add nav and footer -->
<template id="footer_custom" inherit_id="website.layout" name="Custom Footer">
<xpath expr="//footer//ul[@name='products']" position="inside">
<li t-foreach="website_project_ids" t-as="project"><a t-attf-href="/project/#{ project.id }/"><t t-esc="project.name"/></a></li>
<li t-foreach="website_project_ids" t-as="project"><a t-href="/project/#{ project.id }/"><t t-esc="project.name"/></a></li>
</xpath>
</template>
@@ -24,7 +24,7 @@
<!-- Project -->
<template id="task_kanban_card" name="TaskKanban">
<div class="thumbnail">
<a t-attf-href="/project/task/#{object_id.id}/"><span t-field="object_id.name"/></a>
<a t-href="/project/task/#{object_id.id}/"><span t-field="object_id.name"/></a>
<div>
Assigned to <span t-field="object_id.user_id"/>
</div>