Add calendar view

This commit is contained in:
michel 2017-11-09 10:19:08 +01:00
parent 7b33b11789
commit 650664245d
2 changed files with 17 additions and 1 deletions

View File

@ -99,7 +99,9 @@
</search> </search>
</field> </field>
</record> </record>
<!-- Kanban --> <!-- Kanban -->
<record id="view_kanban_coworker" model="ir.ui.view"> <record id="view_kanban_coworker" model="ir.ui.view">
<field name="name">Coworker Kanban</field> <field name="name">Coworker Kanban</field>
<field name="model">coworking.coworker</field> <field name="model">coworking.coworker</field>
@ -128,4 +130,18 @@
</field> </field>
</record> </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> </odoo>

View File

@ -4,7 +4,7 @@
<!-- Action to open Coworkers list --> <!-- Action to open Coworkers list -->
<act_window id="coworker_action" name="Coworkers" <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 --> <!-- Menu item to open Coworkers list -->
<menuitem id="coworker_menu" name="Coworkers" action="coworker_action" /> <menuitem id="coworker_menu" name="Coworkers" action="coworker_action" />