<?xml version="1.0"?>
<form string="Planning">
                    <field name="company_id" invisible="1"/>
                    <field name="active" invisible="1"/>
                    <sheet>
                        <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                        <div class="oe_title">
                            <label for="name" string="Plan Name"/>
                            <h1>
                                <field name="name" placeholder="e.g. Onboarding" options="{'line_breaks': False}" widget="text"/>
                            </h1>
                        </div>
                        <group name="group_plan_fields">
                            <group>
                                <field name="res_model"/>
                            </group>
                            <group name="company_id" groups="base.group_multi_company">
                                <field name="company_id" domain="[('id', '=', allowed_company_ids)]" placeholder="Available for all Companies"/>
                            </group>
                        </group>
                        <notebook>
                            <page string="Activities To Create">
                                <!-- Pass on the model to ensure the correct dynamic selection (in e.g. hr) on unsaved plans -->
                                <field name="template_ids" nolabel="1" context="{'default_res_model': res_model}">
                                    <list>
                                        <field name="company_id" column_invisible="1"/>
                                        <field name="note" column_invisible="1"/>
                                        <field name="sequence" widget="handle"/>
                                        <field name="activity_type_id" context="{'form_view_ref': 'mail.mail_activity_type_form_inherit'}" options="{'no_quick_create': True}"/>
                                        <field name="summary" placeholder="e.g. Discuss Proposal"/>
                                        <field name="responsible_type"/>
                                        <field name="responsible_id" readonly="responsible_type != 'other'" widget="many2one_avatar_user"/>
                                        <field name="delay_count"/>
                                        <field name="delay_unit" string="Unit"/>
                                        <field name="delay_from"/>
                                    </list>
                                    <kanban class="o_kanban_mobile">
                                        <field name="icon"/>
                                        <templates>
                                            <t t-name="card">
                                                <div class="fw-bold fs-5">
                                                    <i t-if="record.icon.value" t-attf-class="fa #{record.icon.value} fa-fw " role="img" aria-label="Activity Type" title="Activity Type"/>
                                                    <field name="activity_type_id"/>
                                                </div>
                                                <field name="summary"/>
                                                <div>
                                                    <field name="delay_count"/> <field name="delay_unit"/>
                                                    (<field name="delay_from"/>)
                                                </div>
                                                <footer class="p-0">
                                                    <field name="responsible_type"/>
                                                    <field class="ms-auto" name="responsible_id" widget="many2one_avatar_user" readonly="1"/>
                                                </footer>
                                            </t>
                                        </templates>
                                    </kanban>
                                </field>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            