Commit Graph
5 Commits
Author SHA1 Message Date
Patrick Hoste b13489ec99 [IMP] event: translate ics file to the frontend lang
This commit translate the ics file for an event to
the language chosen by the public user on the website.
For connected users, the ics file is translated to
the user's language.

Task-3199180

closes odoo/odoo#115599

X-original-commit: 2fa5ceaf2978036f44027c19abaf17afec1d5db3
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2023-03-17 08:10:50 +01:00
Debauche Stéphane 412ff994f1 [IMP] event: replace state by kanban stage
Purpose
=======
Remove the state on the event and add a stage.
So, we can have more control on the event flow, and we will have less constrains.

Website event
=============
Before
------
People can register for an event if "seats are available" and if the state is "confirmed".

After
-----
People can register for an event if `event_registrations_open` is True,
- Event: seats are available and the event is not finished
- Event sale:  One or more ticket has `sale_available` set to True

Task #2088538
2020-01-08 09:11:50 +00:00
Alex Tuyls 0d7ef88299 [FIX] event: allow ics file with public user
If you register online on a free event, there is an
access rights error when trying to download the ICS file
if you are connectd with public user.

`if not event` part is pointless, if event cannot be resolved,
@http.route would return a 404 anyway.
`if not event.registration_ids` does not make sense from a
functional point of view: there is no problem in generating
an .ics file for a public event that has no registrations (yet)
and the button we use to generate the .ics file is displayed
after the registration anyway.

opw-2066847

closes odoo/odoo#37012

X-origin-commit: f4ca5897df9295b684bcbfcafd98fbde2f8bf673
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-17 13:33:08 +00:00
Dharmraj Jhala 8b31b3b18d [FIX] event: fix traceback while downloading ics file
Currently while downloading ics for an event, it gives
traceback due to improper handling of kwargs.

It was introduced from https://github.com/odoo/odoo/commit/a03faab03fdf8a164c2f1298cc138b3fa83b0bea

This commit fixes the issue by properly handling
kwargs in the method definition.

task-1938637

closes odoo/odoo#32750

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-18 05:22:34 +00:00
RomainLibert a03faab03f [IMP] event, website_event: Make ics file generation available in event
Ics file generation should be possible even when only event is
installed as it is a basic feature of events.

Moreover we need to be able to generate such files in order to replace
the old outlook api used in the event templates, api which is not
supported anymore.

We decided to use ics files because it is supported by most calendar
schedulers hence working with outlook.

Linked to task #1853063

closes odoo/odoo#28477
2018-12-17 11:46:48 +00:00