跳至内容
菜单
此问题已终结
1 回复
6025 查看

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

形象
丢弃
编写者

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

编写者

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, 

最佳答案

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.


形象
丢弃
相关帖文 回复 查看 活动
0
10月 24
1166
0
6月 24
1208
0
3月 22
1814
0
9月 15
4409
2
7月 25
711