social/mail_activity_team/views/mail_activity_team_views.xml

113 lines
3.8 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">
2018-11-27 12:22:49 +01:00
<header>
2021-01-26 15:06:17 +01:00
<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)]}"
/>
2018-11-27 12:22:49 +01:00
</header>
2018-11-27 09:35:55 +01:00
<sheet string="Activity Team">
<div class="oe_button_box" name="button_box">
2021-01-26 15:06:17 +01:00
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-archive"
>
<field
name="active"
widget="boolean_button"
options='{"terminology": "archive"}'
/></button>
2018-11-27 09:35:55 +01:00
</div>
<group>
<group name="base">
2021-01-26 15:06:17 +01:00
<field name="name" />
<field name="user_id" />
2018-11-27 09:35:55 +01:00
</group>
<group name="models">
2021-01-26 15:06:17 +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">
2021-01-26 15:06:17 +01:00
<field name="member_ids" nolabel="1" />
2018-11-27 09:35:55 +01:00
</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>
2021-01-26 15:06:17 +01:00
<field name="name" />
<field name="res_model_ids" widget="many2many_tags" />
2018-11-27 09:35:55 +01:00
</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>
2021-01-26 15:06:17 +01:00
<field name="name" />
<field name="res_model_ids" />
<field name="member_ids" />
2018-11-27 09:35:55 +01:00
</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_mode">tree,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
2021-01-26 15:06:17 +01:00
<field name="search_view_id" ref="mail_activity_team_view_search" />
2018-11-27 09:35:55 +01:00
</record>
<!--
Menus
-->
<menuitem
2021-01-26 15:06:17 +01:00
id="menu_mail_activity_team"
name="Activity Teams"
parent="base.menu_email"
action="mail_activity_team_action"
/>
2018-11-27 09:35:55 +01:00
</odoo>