<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="mail_activity_plan_template_view_tree" model="ir.ui.view">
            <field name="name">mail.activity.plan.template.view.tree</field>
            <field name="model">mail.activity.plan.template</field>
            <field name="arch" type="xml">
                <tree string="Activities">
                    <field name="activity_type_id" context="{'form_view_ref': 'mail.mail_activity_type_form_inherit'}"/>
                    <field name="summary"/>
                    <field name="responsible_type"/>
                </tree>
            </field>
        </record>

        <record id="mail_activity_plan_template_view_form" model="ir.ui.view">
            <field name="name">mail.activity.plan.template.view.form</field>
            <field name="model">mail.activity.plan.template</field>
            <field name="arch" type="xml">
                <form string="Activity">
                    <field name="company_id" invisible="1"/>
                    <field name="res_model" invisible="1"/>
                    <sheet>
                        <group>
                            <field name="activity_type_id" context="{'form_view_ref': 'mail.mail_activity_type_form_inherit'}"/>
                            <field name="summary"/>
                            <field name="responsible_type"/>
                            <field name="responsible_id" invisible="responsible_type != 'other'"/>
                            <field name="note"/>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
    </data>
</odoo>