forked from michel/Coworking
Add calendar view
This commit is contained in:
parent
7b33b11789
commit
650664245d
@ -99,7 +99,9 @@
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Kanban -->
|
||||
|
||||
<record id="view_kanban_coworker" model="ir.ui.view">
|
||||
<field name="name">Coworker Kanban</field>
|
||||
<field name="model">coworking.coworker</field>
|
||||
@ -128,4 +130,18 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Calendar -->
|
||||
<record id="view_calendar_coworker" model="ir.ui.view">
|
||||
<field name="name">Coworker Calendar</field>
|
||||
<field name="model">coworking.coworker</field>
|
||||
<field name="arch" type="xml">
|
||||
<calendar date_start="contact_date"
|
||||
display="[contact_date],[name]" >
|
||||
<!-- Fields used for the display text -->
|
||||
<field name="contact_date" />
|
||||
<field name="name" />
|
||||
</calendar>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<!-- Action to open Coworkers list -->
|
||||
<act_window id="coworker_action" name="Coworkers"
|
||||
res_model="coworking.coworker" view_mode="tree,form,kanban" />
|
||||
res_model="coworking.coworker" view_mode="tree,form,kanban,calendar" />
|
||||
<!-- Menu item to open Coworkers list -->
|
||||
<menuitem id="coworker_menu" name="Coworkers" action="coworker_action" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user