[REF]Cleaning title / name tests
This commit is contained in:
parent
e0ce682b3f
commit
7ac77e3762
@ -10,10 +10,10 @@ class Event(models.Model):
|
|||||||
""" Event model """
|
""" Event model """
|
||||||
_name = 'coworking.event'
|
_name = 'coworking.event'
|
||||||
_description = 'Event model definition'
|
_description = 'Event model definition'
|
||||||
|
_rec_name = 'title'
|
||||||
_order = 'id asc'
|
_order = 'id asc'
|
||||||
|
|
||||||
title = fields.Char(required=True)
|
title = fields.Char(required=True)
|
||||||
_rec_name = 'title'
|
|
||||||
|
|
||||||
manager_id = fields.Many2one('coworking.coworker', 'Manager', index=True, required=True,
|
manager_id = fields.Many2one('coworking.coworker', 'Manager', index=True, required=True,
|
||||||
domain="[('coworker_type', 'in', ['staffer', 'member'])]")
|
domain="[('coworker_type', 'in', ['staffer', 'member'])]")
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<!-- Tree -->
|
<!-- Tree -->
|
||||||
<record id="view_tree_coworker" model="ir.ui.view">
|
<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="model">coworking.event</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree default_order="date_start asc">
|
<tree default_order="date_start asc">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<record id="view_search_event" model="ir.ui.view">
|
<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="model">coworking.event</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<search>
|
<search>
|
||||||
@ -83,11 +83,11 @@
|
|||||||
</record>
|
</record>
|
||||||
<!-- Calendar -->
|
<!-- Calendar -->
|
||||||
<record id="view_calendar_event" model="ir.ui.view">
|
<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="model">coworking.event</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<calendar date_start="date_start" date_stop="date_end"
|
<calendar date_start="date_start" date_stop="date_end"
|
||||||
display="title : [title]" >
|
display="[title]" >
|
||||||
<field name="title" />
|
<field name="title" />
|
||||||
</calendar>
|
</calendar>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user