forked from michel/Coworking
[REF]Cleaning title / name tests
This commit is contained in:
parent
e0ce682b3f
commit
7ac77e3762
@ -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'])]")
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user