forked from michel/Coworking
Add calendar menu
This commit is contained in:
parent
7438312291
commit
a0d00c22e0
@ -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']
|
||||
}
|
||||
|
13
coworking_coworker/views/res_partner_menu.xml
Normal file
13
coworking_coworker/views/res_partner_menu.xml
Normal 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>
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user