social/mail_activity_team/views/mail_activity_team_views.xml

91 lines
2.9 KiB
XML
Raw Normal View History

2018-11-27 09:35:55 +01:00
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--
VIEWS
-->
<!-- FORM VIEW -->
<record id="mail_activity_team_view_form" model="ir.ui.view">
<field name="name">mail.activity.team.view.form</field>
<field name="model">mail.activity.team</field>
<field name="arch" type="xml">
<form string="Activity Team">
<sheet string="Activity Team">
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object"
class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button"
options='{"terminology": "archive"}'/></button>
</div>
<group>
<group name="base">
<field name="name"/>
</group>
<group name="models">
<field name="res_model_ids" widget="many2many_tags"/>
</group>
</group>
<notebook>
<page name="members" string="Members">
<field name="member_ids" nolabel="1"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- TREE VIEW -->
<record id="mail_activity_team_view_tree" model="ir.ui.view">
<field name="name">mail.activity.team.view.tree</field>
<field name="model">mail.activity.team</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="res_model_ids" widget="many2many_tags"/>
</tree>
</field>
</record>
<!-- SEARCH VIEW -->
<record id="mail_activity_team_view_search" model="ir.ui.view">
<field name="name">mail.activity.team.view.search</field>
<field name="model">mail.activity.team</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="res_model_ids"/>
<field name="member_ids"/>
</search>
</field>
</record>
<!--
ACTION
-->
<record model="ir.actions.act_window" id="mail_activity_team_action">
<field name="name">Activity Teams</field>
<field name="res_model">mail.activity.team</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
<field name="search_view_id" ref="mail_activity_team_view_search"/>
</record>
<!--
Menus
-->
<menuitem
id="menu_mail_activity_team"
name="Activity Teams"
parent="base.menu_email"
action="mail_activity_team_action"/>
</odoo>