<?xml version="1.0"?>
<form string="Planning">
                    <field name="company_id" invisible="1"/>
                    <sheet>
                        <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
                        <div class="oe_title">
                            <label for="name" string="Plan Name"/>
                            <h1>
                                <field name="name" placeholder="e.g. Onboarding"/>
                            </h1>
                        </div>
                        <group>
                            <field name="department_id"/>
                            <field name="company_id" groups="base.group_multi_company"/>
                            <field name="active" invisible="1"/>
                        </group>
                        <notebook>
                            <page string="Activities To Generate">
                                <field name="plan_activity_type_ids" nolabel="1">
                                    <tree>
                                        <field name="company_id" invisible="1"/>
                                        <field name="activity_type_id"/>
                                        <field name="summary"/>
                                        <field name="responsible"/>
                                        <field name="responsible_id" attrs="{'readonly': [('responsible', '!=', 'other')]}" optional="hide"/>
                                        <field name="company_id" groups="base.group_multi_company" optional="hide"/>
                                    </tree>
                                </field>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            