Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5902 Vistas

Hi everybody, I have some problem with odoo event management. I have some error when access the event details as a public user.


403: Forbidden

The page you were looking for could not be authorized.

Maybe you were looking for one of these popular pages ?

Please kind find the way to fix the problem

Avatar
Descartar
Autor

Hi Pandachi - Coopilote,

The event allready publish on the website, and when i click that for event detail & register the page shown is forbidden.

This is error log from my server:

The server said i don't have access to this document. How i can give the access for that to public user?

Thank for your nice help

Autor

This error message form my server:

AccessError:(u'Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to that:\n- Events/Manager\n\t- Events/User\n\n(Document model:event.event.ticket)',None)

hello,

So we need some infos to help you.

Can you help use to reproduce the problem ?

ex: modules installed, etc ..

- Is the event correctly published on website ?

- can you copy / paste the error message (traceback) you have in server log ?

thanks, 

Mejor respuesta

copying my answer from: https://www.odoo.com/forum/help-1/events-not-visible-by-public-after-publishing-403-forbidden-129918

There is a bug in website_event/controllers/main.py. It was fixed some time after 06/2018:

the event_register method at line 167 should look like this:

def event_register(self, event, **post):
values = {
'event': event,
'main_object': event,
'range': range,
'registrable': event.sudo()._is_event_registrable()
}
return request.render("website_event.event_description_full", values)

The problem is caused if that little sudo() is missing.


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 24
1031
0
jun 24
1100
0
mar 22
1722
0
sept 15
4289
2
jul 25
584