[FIX] SEO for public events
bzr revid: ddm@openerp.com-20131017083534-outfljvfqjomfxgv
This commit is contained in:
parent
ebdfbc58f1
commit
d6f8540978
|
@ -154,9 +154,10 @@ class website_event(http.Controller):
|
|||
@website.route(['/event/<int:event_id>'], type='http', auth="public", multilang=True)
|
||||
def event(self, event_id=None, **post):
|
||||
event_obj = request.registry['event.event']
|
||||
event = event_obj.browse(request.cr, request.uid, event_id, dict(request.context, show_address_only=1))
|
||||
values = {
|
||||
'event_id': event_obj.browse(request.cr, request.uid, event_id,
|
||||
dict(request.context, show_address_only=1)),
|
||||
'event_id': event,
|
||||
'main_object': event,
|
||||
'range': range,
|
||||
'float': float,
|
||||
}
|
||||
|
|
|
@ -45,6 +45,9 @@ class event(osv.osv):
|
|||
string='Website Messages',
|
||||
help="Website communication history",
|
||||
),
|
||||
'website_meta_title': fields.char("Website meta title", size=70, translate=True),
|
||||
'website_meta_description': fields.text("Website meta description", size=160, translate=True),
|
||||
'website_meta_keywords': fields.char("Website meta keywords", translate=True),
|
||||
}
|
||||
_defaults = {
|
||||
'website_published': False,
|
||||
|
|
Loading…
Reference in New Issue