Skip to Content
Menu
This question has been flagged
1 Reply
5003 Views

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
Discard
Author

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

Author

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, 

Best Answer

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
Discard
Related Posts Replies Views Activity
0
Oct 24
82
0
Jun 24
280
0
Mar 22
1150
0
Sep 15
3356
0
Apr 24
221