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">
|
2018-11-27 12:22:49 +01:00
|
|
|
<header>
|
|
|
|
<field name="count_missing_activities" invisible="1"/>
|
|
|
|
<button name="assign_team_to_unassigned_activities" string="Assign to missing activities"
|
|
|
|
type="object" class="oe_highlight"
|
|
|
|
groups="base.group_no_one"
|
|
|
|
attrs="{'invisible': [('count_missing_activities', '=', 0)]}"/>
|
|
|
|
</header>
|
2018-11-27 09:35:55 +01:00
|
|
|
<sheet string="Activity Team">
|
|
|
|
<div class="oe_button_box" name="button_box">
|
|
|
|
<button name="toggle_active" type="object"
|
2018-11-27 12:22:49 +01:00
|
|
|
class="oe_stat_button" icon="fa-archive">
|
2018-11-27 09:35:55 +01:00
|
|
|
<field name="active" widget="boolean_button"
|
2018-11-27 12:22:49 +01:00
|
|
|
options='{"terminology": "archive"}'/></button>
|
2018-11-27 09:35:55 +01:00
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<group name="base">
|
|
|
|
<field name="name"/>
|
2018-11-27 12:22:49 +01:00
|
|
|
<field name="user_id" attrs="{'invisible': [('member_ids', '=', [])]}"/>
|
2018-11-27 09:35:55 +01:00
|
|
|
</group>
|
|
|
|
<group name="models">
|
2018-11-27 12:22:49 +01:00
|
|
|
<field name="res_model_ids" widget="many2many_tags"
|
|
|
|
options="{'no_create': True, 'no_open': True}"/>
|
2018-11-27 09:35:55 +01:00
|
|
|
</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>
|