<?xml version="1.0"?>
<form string="Resource">
            <sheet>
                <field name="active" invisible="1"/>
                <field name="company_id" invisible="1"/>
                <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
                <group>
                    <group name="user_details">
                        <field name="name"/>
                        <field name="user_id" attrs="{'required':[('resource_type','=','user')], 'invisible': [('resource_type','=','material')]}"/>
                        <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
                        <field name="resource_type"/>
                    </group>
                    <group name="resource_details">
                        <field name="calendar_id"/>
                        <field name="tz"/>
                        <field name="time_efficiency"/>
                    </group>
                </group>
            </sheet>
            </form>
        