diff options
| author | Yenthe666 <yenthevg@gmail.com> | 2019-10-13 10:37:14 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-10-14 14:25:37 +0000 |
| commit | 1112313d414a875d35db77145b8a410cf59cd332 (patch) | |
| tree | ace2715690e164d1a87bf611854f12ed71559534 /addons | |
| parent | 3c3f0753da26d8e6df522f795501e2686852709c (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')
| -rw-r--r-- | addons/website_event_track/models/event_track.py | 2 |
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): |
