[REF]Cleaning title / name tests

This commit is contained in:
Fabien BOURGEOIS 2017-11-15 15:32:42 +01:00
parent e0ce682b3f
commit 7ac77e3762
2 changed files with 5 additions and 5 deletions

View File

@ -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'])]")

View File

@ -31,7 +31,7 @@
<!-- Tree -->
<record id="view_tree_coworker" model="ir.ui.view">
<field name="title">event Tree</field>
<field name="name">event Tree</field>
<field name="model">coworking.event</field>
<field name="arch" type="xml">
<tree default_order="date_start asc">
@ -46,7 +46,7 @@
<!-- Search -->
<record id="view_search_event" model="ir.ui.view">
<field name="title">Event Search</field>
<field name="name">Event Search</field>
<field name="model">coworking.event</field>
<field name="arch" type="xml">
<search>
@ -83,11 +83,11 @@
</record>
<!-- Calendar -->
<record id="view_calendar_event" model="ir.ui.view">
<field name="title">Event Calendar</field>
<field name="name">Event Calendar</field>
<field name="model">coworking.event</field>
<field name="arch" type="xml">
<calendar date_start="date_start" date_stop="date_end"
display="title : [title]" >
display="[title]" >
<field name="title" />
</calendar>
</field>