diff options
| author | Debauche Stéphane <std@odoo.com> | 2019-10-23 11:04:15 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-01-08 09:11:50 +0000 |
| commit | 412ff994f1120457c912aad487265e3de8a9f35a (patch) | |
| tree | 0a1f655a383ab19338748f18b77907122ca600e4 /addons/event/controllers | |
| parent | d6706850502cb3f6d2505afd566e48e99fa4e88e (diff) | |
[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
Diffstat (limited to 'addons/event/controllers')
| -rw-r--r-- | addons/event/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/event/controllers/main.py b/addons/event/controllers/main.py index 723d30aaa51..509d486bcad 100644 --- a/addons/event/controllers/main.py +++ b/addons/event/controllers/main.py @@ -8,7 +8,7 @@ from odoo.http import Controller, request, route, content_disposition class EventController(Controller): - @route(['''/event/<model("event.event", "[('state', 'in', ('confirm', 'done'))]"):event>/ics'''], type='http', auth="public") + @route(['''/event/<model("event.event"):event>/ics'''], type='http', auth="public") def event_ics_file(self, event, **kwargs): files = event._get_ics_file() if not event.id in files: |
