[IMP] website_project: remove preprocess_request content; user can the add link with the menu editor

bzr revid: chm@openerp.com-20140423150135-ng1xkiopm2ks3v23
This commit is contained in:
chm@openerp.com 2014-04-23 17:01:35 +02:00
parent 8ddf7a21b7
commit 1657ffb8e7
2 changed files with 0 additions and 25 deletions

View File

@ -21,22 +21,6 @@
from openerp.addons.web import http
from openerp.addons.web.http import request
from openerp.osv import osv
class Website(osv.Model):
_inherit = "website"
def preprocess_request(self, cr, uid, ids, request, context=None):
project_obj = request.registry['project.project']
project_ids = project_obj.search(cr, uid, [('privacy_visibility', "=", "public")], context=request.context)
request.context.update({
'website_project_ids': project_obj.browse(cr, uid, project_ids, context=request.context)
})
return super(Website, self).preprocess_request(cr, uid, ids, request, context=None)
class website_project(http.Controller):

View File

@ -2,15 +2,6 @@
<openerp>
<data>
<!-- Layout add nav and footer -->
<template id="footer_custom" inherit_id="website.layout" name="Footer Project's Links">
<xpath expr="//footer//ul[@name='products']" position="inside">
<li t-foreach="website_project_ids" t-as="project">
<a t-attf-href="/project/#{ project.id }"><span t-field="project.name"/></a>
</li>
</xpath>
</template>
<!-- Project -->
<template id="task_kanban_card" name="TaskKanban">
<div class="thumbnail">