From 1112313d414a875d35db77145b8a410cf59cd332 Mon Sep 17 00:00:00 2001 From: Yenthe666 Date: Sun, 13 Oct 2019 10:37:14 +0000 Subject: [PATCH] [FIX] website_event_track: make location name required Creating a location without name does not make sense, it is the only field of the model Fixes odoo/odoo#38571 Adapt in master to make the field required at the model closes odoo/odoo#38718 X-original-commit: 0823062efa96c316b9bca743891c8a1c701d130d Signed-off-by: Martin Trigaux (mat) --- addons/website_event_track/models/event_track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event_track/models/event_track.py b/addons/website_event_track/models/event_track.py index 80bf005d11a..15d64657657 100644 --- a/addons/website_event_track/models/event_track.py +++ b/addons/website_event_track/models/event_track.py @@ -25,7 +25,7 @@ class TrackLocation(models.Model): _name = "event.track.location" _description = 'Event Track Location' - name = fields.Char('Location') + name = fields.Char('Location', required=True) class TrackStage(models.Model):