From 7ac77e376206bd523bdb4b579d569d188a43e161 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Wed, 15 Nov 2017 15:32:42 +0100 Subject: [PATCH] [REF]Cleaning title / name tests --- models/event.py | 2 +- views/event_views.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/event.py b/models/event.py index e928ad3..2e08134 100644 --- a/models/event.py +++ b/models/event.py @@ -10,10 +10,10 @@ class Event(models.Model): """ Event model """ _name = 'coworking.event' _description = 'Event model definition' + _rec_name = 'title' _order = 'id asc' title = fields.Char(required=True) - _rec_name = 'title' manager_id = fields.Many2one('coworking.coworker', 'Manager', index=True, required=True, domain="[('coworker_type', 'in', ['staffer', 'member'])]") diff --git a/views/event_views.xml b/views/event_views.xml index 42f4497..e409b53 100644 --- a/views/event_views.xml +++ b/views/event_views.xml @@ -31,7 +31,7 @@ - event Tree + event Tree coworking.event @@ -46,7 +46,7 @@ - Event Search + Event Search coworking.event @@ -83,11 +83,11 @@ - Event Calendar + Event Calendar coworking.event + display="[title]" >