Add calendar menu

This commit is contained in:
michel 2017-11-27 18:27:31 +01:00
parent 7438312291
commit a0d00c22e0
3 changed files with 29 additions and 3 deletions

View File

@ -25,10 +25,10 @@
'license': 'AGPL-3',
'application': False,
'installable': True,
'data': ['views/res_partner_views.xml'],
'data': ['views/res_partner_views.xml',
'views/res_partner_menu.xml'],
# 'security/ir.model.access.csv',
# 'views/coworking_menu.xml',
# 'views/coworker_views.xml'
# 'views/coworker_views.xml'
'depends': ['coworking_base']
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Action to open Coworkers list -->
<act_window id="contacts.action_contacts" name="Contacts"
res_model="res.partner" view_mode="tree,form,kanban,calendar" />
<!-- Menu item to open Coworkers list -->
<!-- <menuitem id="ir.actions" name="Contacts" action="contacts_action" /> -->
</odoo>

View File

@ -66,4 +66,17 @@
</field>
</record>
<!-- Calendar -->
<record id="view_calendar_res_partner" model="ir.ui.view">
<field name="name">res.partner.calendar.inherit</field>
<field name="model">res.partner</field>
<!-- <field name="inherit_id" ref ="base.view_partner_form" /> -->
<field name="arch" type="xml">
<calendar date_start="contact_date"
display="First contact : [name]" >
<field name="name" />
</calendar>
</field>
</record>
</odoo>