2018-11-27 09:35:55 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_form_popup" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.form.popup</field>
|
|
|
|
<field name="model">mail.activity</field>
|
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_form_popup"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="user_id" position="after">
|
|
|
|
<field name="team_id" options="{'no_create': True, 'no_open': True}"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_tree" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.tree</field>
|
|
|
|
<field name="model">mail.activity</field>
|
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="date_deadline" position="after">
|
|
|
|
<field name="team_id"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_form_board" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.form</field>
|
|
|
|
<field name="model">mail.activity</field>
|
|
|
|
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_form_board"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="user_id" position="after">
|
|
|
|
<field name="team_id"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_kanban" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.boards.view.kanban</field>
|
|
|
|
<field name="model">mail.activity</field>
|
|
|
|
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_kanban"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="user_id" position="after">
|
|
|
|
<field name="team_id"/>
|
|
|
|
</field>
|
|
|
|
<xpath expr="//div[hasclass('oe_kanban_content')]" position="inside">
|
|
|
|
<br/>
|
|
|
|
<div>
|
|
|
|
Team: <field name="team_id"/>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- SEARCH VIEW -->
|
|
|
|
<record id="mail_activity_view_search" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.boards.view.search</field>
|
|
|
|
<field name="model">mail.activity</field>
|
|
|
|
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_search"/>
|
|
|
|
<field name="priority" eval="2"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr='//field[@name="user_id"]' position='before'>
|
|
|
|
<field name="team_id"/>
|
|
|
|
</xpath>
|
2018-12-24 13:19:52 +01:00
|
|
|
<xpath expr='//filter[@name="activities_my"]' position='after'>
|
|
|
|
<filter name="my_team_activities" string="My Team Activities" domain="[('team_id.member_ids', '=', uid)]"/>
|
|
|
|
</xpath>
|
2018-11-27 09:35:55 +01:00
|
|
|
<group position='inside'>
|
|
|
|
<filter name='team' string="Team" context="{'group_by': 'team_id'}"/>
|
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
</record>
|
|
|
|
</odoo>
|