summaryrefslogtreecommitdiff
path: root/addons/website_event/controllers/main.py
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2020-01-10 15:08:41 +0000
committerPatrick Hoste <pko@odoo.com>2020-03-31 06:34:45 +0000
commitd2e02976e2934274cdc7a37616713ba6166ca1b7 (patch)
tree6226e4fd95ce7f93f26ca3da675bbc5eca9b3a23 /addons/website_event/controllers/main.py
parentaebe199d80c5c7411c3db44386c7b9f3cc5b712d (diff)
[REF] (website_)event(_sale): change seats_availability field to seats_limited
PURPOSE Change seats_availability selection field into a boolean field and rename it to seats_limited for consistency. SPECIFICATION Change all the tests accordingly. Task ID : 2198660 PR : #46659
Diffstat (limited to 'addons/website_event/controllers/main.py')
-rw-r--r--addons/website_event/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py
index ffb2e8b26bc..11e17a4f7a4 100644
--- a/addons/website_event/controllers/main.py
+++ b/addons/website_event/controllers/main.py
@@ -296,7 +296,7 @@ class WebsiteEventController(http.Controller):
def registration_new(self, event, **post):
tickets = self._process_tickets_form(event, post)
availability_check = True
- if event.seats_availability == 'limited':
+ if event.seats_limited:
ordered_seats = 0
for ticket in tickets:
ordered_seats += ticket['quantity']