summaryrefslogtreecommitdiff
path: root/addons/website_event_track/models
diff options
context:
space:
mode:
authorYenthe666 <yenthevg@gmail.com>2019-10-13 10:37:14 +0000
committerMartin Trigaux <mat@odoo.com>2019-10-14 14:25:37 +0000
commit1112313d414a875d35db77145b8a410cf59cd332 (patch)
treeace2715690e164d1a87bf611854f12ed71559534 /addons/website_event_track/models
parent3c3f0753da26d8e6df522f795501e2686852709c (diff)
[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>
Diffstat (limited to 'addons/website_event_track/models')
-rw-r--r--addons/website_event_track/models/event_track.py2
1 files changed, 1 insertions, 1 deletions
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):