From dd1551850c583c748e42e40b35a5bfbb05e2bb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 22 Jan 2020 11:59:32 +0000 Subject: [PATCH] [FIX] event: fix seats_max field not editable Since 412ff994f1120457c912aad487265e3de8a9f35a seats_max field of event cannot be modified as it is always readonly. It should instead not be readonly as we consider people could change it whenever they want. LINKS Task ID 2177281 (support tickets directly in event) Prepares Community PR odoo/odoo#43488 Closes Community PR odoo/odoo#44066 --- addons/event/models/event_event.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/event/models/event_event.py b/addons/event/models/event_event.py index 0e8f6b3cf34..2a3a4597c9d 100644 --- a/addons/event/models/event_event.py +++ b/addons/event/models/event_event.py @@ -117,7 +117,6 @@ class EventEvent(models.Model): # Seats and computation seats_max = fields.Integer( string='Maximum Attendees Number', - readonly=True, help="For each event you can define a maximum registration of seats(number of attendees), above this numbers the registrations are not accepted.") seats_availability = fields.Selection( [('limited', 'Limited'), ('unlimited', 'Unlimited')],