Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5945 Weergaven

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
Annuleer
Auteur

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

Auteur

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, 

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 24
1070
0
jun. 24
1140
0
mrt. 22
1752
0
sep. 15
4332
2
jul. 25
627