Skip to Content
Menu
This question has been flagged
1 Atsakyti
6027 Rodiniai

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

Portretas
Atmesti
Autorius

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

Autorius

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.


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 24
1166
0
birž. 24
1208
0
kov. 22
1814
0
rugs. 15
4409
2
liep. 25
711