diff options
| author | RomainLibert <rli@odoo.com> | 2018-06-12 11:42:01 +0200 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2018-06-14 14:14:50 +0200 |
| commit | 84acd427b8adc6f2c3dc3767ca8ee8f99e4ccbd7 (patch) | |
| tree | aa04ae4b47838885994e42e24a4d7f1b7f39656f | |
| parent | f03f2f7c8acc7126e370208ea86765785850696d (diff) | |
[FIX] website_event: allow controller to read event.registration
The controller /event/<model("event.event"):event>/registration/confirm
was broken since the portal user cannot read event.registration objects.
In 9.0 this was not an issue as we browsed and sudoed the
event.registration, but since in 10.0 this line disapeared so did the
sudo which this commit reintroduces.
| -rw-r--r-- | addons/website_event/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py index d4be8fb5132..1dd43541c94 100644 --- a/addons/website_event/controllers/main.py +++ b/addons/website_event/controllers/main.py @@ -255,6 +255,6 @@ class WebsiteEventController(http.Controller): Attendees._prepare_attendee_values(registration)) return request.render("website_event.registration_complete", { - 'attendees': Attendees, + 'attendees': Attendees.sudo(), 'event': event, }) |
