[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) <mat@odoo.com>
This commit is contained in:
Yenthe666
2019-10-14 14:25:37 +00:00
committed by Martin Trigaux
parent 3c3f0753da
commit 1112313d41
@@ -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):