109 lines
4.3 KiB
XML
109 lines
4.3 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
|
|
<!-- Calendar ICS Form View -->
|
|
|
|
<record model="ir.ui.view" id="view_calendar_ics_form">
|
|
<field name="name">Calendar - ics url</field>
|
|
<field name="model">calendar.ics</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Ics">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<div class="oe_edit_only">
|
|
<label for="name"/>
|
|
</div>
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
<h2>
|
|
<field name="user_id" />
|
|
<field name="url" />
|
|
<field name="active" />
|
|
<button name="get_events" string="Check" type="object" icon="gtk-ok" colspan="1"/>
|
|
</h2>
|
|
</div>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread" />
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- CRM Meeting Tree View -->
|
|
|
|
<record model="ir.ui.view" id="view_calendar_ics_tree">
|
|
<field name="name">Calendar ics-url</field>
|
|
<field name="model">calendar.ics</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Ics-urls" fonts="bold:active==False">
|
|
<field name="name" />
|
|
<field name="user_id" />
|
|
<field name="url" />
|
|
<field name="active" />
|
|
<button name="get_events" string="Check" type="object" icon="gtk-ok" colspan="1"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- CRM Meeting Search View -->
|
|
<record id="view_calendar_ics_search" model="ir.ui.view">
|
|
<field name="name">Calendar ics Search</field>
|
|
<field name="model">calendar.ics</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Calendar ics-urls">
|
|
<field name="name" string="Ics" filter_domain="[('name','ilike',self),('url','ilike',self)]"/>
|
|
<field name="user_id"/>
|
|
<filter icon="terp-go-today" string="My Urls" domain="[('user_id','=',uid)]" help="My Urls"/>
|
|
<filter icon="terp-go-today" string="Active" domain="[('cative','=',True)]" help="Active"/>
|
|
<filter icon="terp-go-today" string="Inactive" domain="[('user_id','=',False)]" help="Inactive"/>
|
|
<separator/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="Owner" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_calendar_ics" model="ir.actions.act_window">
|
|
<field name="name">Calendar ics</field>
|
|
<field name="res_model">calendar.ics</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_calendar_ics_tree"/>
|
|
<field name="search_view_id" ref="view_calendar_ics_search"/>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to schedule a new Calendar ics url.
|
|
</p><p>
|
|
The calendar events in the url updates the calendar.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window.view" id="action_view_calendar_ics_tree">
|
|
<field name="act_window_id" ref="action_calendar_ics"/>
|
|
<field name="sequence" eval="2"/>
|
|
<field name="view_mode">tree</field>
|
|
<field name="view_id" ref="view_calendar_ics_tree"/>
|
|
</record>
|
|
<record model="ir.actions.act_window.view" id="action_view_calendar_ics_form">
|
|
<field name="act_window_id" ref="action_calendar_ics"/>
|
|
<field name="sequence" eval="3"/>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="view_calendar_ics_form"/>
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem id="menu_calendar_configuration" name="Calendar ics" parent="calendar.menu_calendar_configuration" action='action_calendar_ics' /> <!-- groups="base.group_no_one"/> -->
|
|
|
|
|
|
</data>
|
|
</openerp>
|