Odoo

show(detail) with notebook(tabs)

)

 <record model="ir.ui.view" id="it_equipment_form">
            <field name="name">it.equipment.form</field>
            <field name="model">it.equipment</field>
            <field name="arch" type="xml">
                <form string="Equipments">
                    <sheet>
                        <field name="image" class="oe_left oe_avatar" widget="image"/>
                        <div class="oe_title">
                            <div class="oe_edit_only oe_left">
                                <label for="name"/>
                            </div>
                            <h1>
                                <field name="name"/>
                            </h1>
                            <div class="oe_edit_only">
                                <label for="description"/>
                            </div>
                            <h1>
                                <field name="description"/>
                            </h1>
                            <div class="oe_edit_only">
                                <label for="partner_id"/>
                            </div>
                            <h1>
                                <field name="partner_id"/>
                            </h1>
                            <div class="oe_edit_only">
                                <label for="function_ids"/>
                            </div>
                            <h1>
                                <field name="function_ids" widget="many2many_tags" placeholder="Functions..."/>
                            </h1>
                        </div>
                        <div class="oe_right oe_button_box" name="buttons">
                            <button name="%(act_equipment_2_access)d"
                                    class="oe_inline oe_stat_button"
                                    icon="fa-key"
                                    type="action"
                                    attrs="{'invisible':[('is_access','=', False )]}">
                                        <field name="access_count" widget="statinfo"/>
                            </button>
                            <button name="%(act_equipment_2_equipment)d"
                                    class="oe_inline oe_stat_button"
                                    icon="fa-th"
                                    type="action"
                                    attrs="{'invisible': [('function_host','=', False )]}">
                                        <field name="virtual_count" widget="statinfo"/>
                            </button>
                            <button name="%(act_equipment_2_backup)d"
                                    class="oe_inline oe_stat_button"
                                    icon="fa-floppy-o"
                                    type="action"
                                    attrs="{'invisible':[('is_backup','=', False )]}">
                                        <field name="backup_count" widget="statinfo"/>
                            </button>
                        </div>
                        <separator/>
                        <group>
                            <!-- groups and fields
                            <group string="Type">

                            </group>
                            -->
                        </group>
                        <field colspan="4" name="note" nolabel="1" placeholder="Write a note ..."/>
                        <notebook>
                            <page string="Physical Information" attrs="{'invisible':[('equipment_type','!=', 'bundle' )]}">
                                <group>
                                    <field name="physical_component_ids" nolabel="1" colspan="4"/>
                                </group>
                            </page>
                            <page string="Virtual Machine Data" attrs="{'invisible':[('equipment_type','!=', 'virtual' )]}">
                                <group>
                                    <group string="Host">
                                        <field name="virtual_parent_id"/>
                                    </group>
                                    <group string="Configuration">
                                        <field name="virtual_memory_amount"/>
                                        <field name="virtual_disk_amount"/>
                                        <field name="virtual_processor_amount"/>
                                        <field name="virtual_network_amount"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Product Data" attrs="{'invisible':[('equipment_type','!=', 'product' )]}">
                                <group>
                                    <group>
                                        <field name="product_id"/>
                                        <field name="product_serial_number"/>
                                        <field name="product_warranty"/>
                                        <field name="product_buydate"/>
                                    </group>
                                    <group>
                                        <field name="product_note"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Partition Information" attrs="{'invisible':[('is_partitioned','=', False )]}">
                                <group>
                                    <field name="partitions_ids" nolabel="1" colspan="4"/>
                                </group>
                            </page>
                            <page string="Service Information" attrs="{'invisible':[('is_contracted','=', False )]}">
                                <group>
                                    <group string="Contract Information">
                                        <field name="contract_partner_id"/>
                                        <field name="contract_client_number"/>
                                        <field name="contract_owner"/>
                                        <field name="contract_nif"/>
                                        <field name="contract_direction"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Router Configuration" attrs="{'invisible':[('function_router','=', False )]}">
                                <group>
                                    <field name="router_dmz"/>
                                    <field name="router_forward_ids">
                                        <tree string="Forward Registry" editable="bottom">
                                            <field name="name"/>
                                            <field name="source_port"/>
                                            <field name="destination_port"/>
                                            <field name="source_address"/>
                                            <field name="destination_address"/>
                                            <field name="type"/>
                                        </tree>
                                    </field>
                                    <field name="router_nat_ids">
                                        <tree string="Nat Registry" editable="bottom">
                                            <field name="name"/>
                                            <field name="source_address"/>
                                            <field name="destination_address"/>
                                        </tree>
                                    </field>
                                    <field name="router_rules_ids">
                                        <tree string="Rules Registry" editable="bottom">
                                            <field name="name"/>
                                            <field name="source_port"/>
                                            <field name="destination_port"/>
                                            <field name="source_address"/>
                                            <field name="destination_address"/>
                                            <field name="permission"/>
                                        </tree>
                                    </field>
                                </group>
                            </page>
                            <page string="Network Configuration" attrs="{'invisible':[('is_static_ip','=', False )]}">
                                <group>
                                    <group string="Network Configuration">
                                        <field name="equipment_network_ids" nolabel="1" colspan="4"/>
                                    </group>
                                </group>
                            </page>
                            <page string="File Server" attrs="{'invisible':[('function_fileserver','=', False )]}">
                                <group>
                                    <field name="equipment_mapping_ids" nolabel="1" colspan="4"/>
                                </group>
                            </page>
                            <page string="Domain Controller" attrs="{'invisible':[('function_dc','=', False )]}">
                                <group>
                                    <field name="dc_name"/>
                                    <field name="dc_type"/>
                                    <field name="dc_user_ids">
                                        <tree string="Users" editable="bottom">
                                            <field name="name"/>
                                            <field name="user"/>
                                            <field name="mail"/>
                                            <field name="actived"/>
                                        </tree>
                                    </field>
                                    <field name="dc_group_ids">
                                        <tree string="Groups" editable="bottom">
                                            <field name="name"/>
                                            <field name="description"/>
                                            <field name="actived"/>
                                        </tree>
                                    </field>
                                </group>
                            </page>
                            <page string="Wireless Config" attrs="{'invisible':[('function_ap','=', False )]}">
                                <group string="Wifi">
                                    <field name="ap_ssid"/>
                                    <field name="ap_auth_type"/>
                                    <field name="ap_password"/>
                                </group>
                                <group string="Guest Access">
                                    <field name="ap_guest"/>
                                    <field name="ap_guest_ssid" attrs="{'invisible':[('ap_guest','=', False )]}"/>
                                    <field name="ap_guest_password" attrs="{'invisible':[('ap_guest','=', False )]}"/>
                                </group>
                            </page>
                            <page string="DHCP Config" attrs="{'invisible':[('function_dhcp','=', False )]}">
                                <group>
                                    <field name="dhcp_scope"/>
                                    <field name="dhcp_relay"/>
                                    <field name="dhcp_reservation_ids">
                                        <tree string="Reservations" editable="bottom">
                                            <field name="name"/>
                                            <field name="mac_address"/>
                                            <field name="ip_address"/>
                                        </tree>
                                    </field>
                                </group>
                            </page>
                            <page string="Databases" attrs="{'invisible':[('function_database','=', False )]}">
                                <group>
                                    <field name="db_engine"/>
                                    <field name="db_setting_ids">
                                        <tree string="Engine Settings" editable="bottom">
                                            <field name="name"/>
                                            <field name="value"/>
                                            <field name="description"/>
                                        </tree>
                                    </field>
                                    <field name="db_ids">
                                        <tree string="Databases" editable="bottom">
                                            <field name="name"/>
                                            <field name="codification"/>
                                            <field name="description"/>
                                        </tree>
                                    </field>
                                </group>
                            </page>
                            <page string="Firewall and Proxy" attrs="{'invisible':[('function_firewall', '=', False)]}">
                                <group string="Firewall Filter">
                                    <field name="firewall_filter_ids" nolabel="1" colspan="4">
                                        <tree string="Firewall Filters" editable="bottom">
                                            <field name="name"/>
                                            <field name="source_address"/>
                                            <field name="destination_address"/>
                                            <field name="service_port"/>
                                            <field name="permission"/>
                                        </tree>
                                    </field>
                                </group>
                                <group string="Proxy">
                                    <field name="proxy_transparent"/>
                                    <field name="proxy_enable_ssk"/>
                                    <field name="proxy_adblocking"/>
                                    <field name="proxy_port"/>
                                    <field name="proxy_cache_size"/>
                                </group>
                            </page>
                            <page string="VPN" attrs="{'invisible':[('function_vpn', '=', False)]}">
                                <group string="VPN Server Config">
                                    <field name="vpn_protocol"/>
                                    <field name="vpn_address"/>
                                    <field name="vpn_server_cert"/>
                                    <field name="vpn_cacn"/>
                                    <field name="vpn_tun"/>
                                    <field name="vpn_nat"/>
                                    <field name="vpn_c2c"/>
                                    <field name="vpn_gateway"/>
                                    <field name="vpn_search_domain"/>
                                    <field name="vpn_wins_server"/>
                                </group>
                            </page>
                            <page string="Operating System" attrs="{'invisible':[('is_os','=', False )]}">
                                <group>
                                    <field name="os_name"/>
                                    <field name="os_company"/>
                                    <field name="os_version"/>
                                </group>
                            </page>
                            <page string="Applications" attrs="{'invisible':[('is_application','=', False )]}">
                                <group>
                                    <field name="application_ids" nolabel="1" colspan="4"/>
                                </group>
                            </page>
                            <page string="Configuration Files" attrs="{'invisible':[('is_config_file','=', False )]}">
                                <group>
                                    <field name="configuration_file_ids">
                                        <tree string="Configuration Files" editable="bottom">
                                            <field name="name"/>
                                            <field name="date"/>
                                            <field name="config_file" filename="config_file_filename"/>
                                            <field name="config_file_filename" invisible="1"/>
                                        </tree>
                                    </field>
                                </group>
                            </page>
                            <page string="Worklog" >
                                <field name="worklog_ids" nolabel="1" colspan="4"/>
                            </page>
                            <page string="Audit Data" groups="it.group_it_mod">
                                <group>
                                    <group>
                                        <field name="user_id"/>
                                        <field name="creation_date"/>
                                        <field name="pin"/>
                                    </group>
                                </group>
                            </page>
                            <page string="Configuration" groups="it.group_it_mod">
                                <group string="Equipment Type">
                                    <field name="equipment_type"/>
                                </group>
                                <newline/>
                                <group>
                                    <group string="Basic Configuration">
                                        <field name="active"/>
                                        <field name="company_id" string="Company" groups="base.group_multi_company"/>
                                        <field name="is_access"/>
                                        <field name="is_backup"/>
                                        <field name="is_application"/>
                                        <field name="is_contracted"/>
                                        <field name="is_static_ip"/>
                                        <field name="is_partitioned"/>
                                        <field name="is_config_file"/>
                                        <field name="is_os"/>
                                    </group>
                                    <group string="Function Configuration">
                                        <field name="function_host"/>
                                        <field name="function_router"/>
                                        <field name="function_dc"/>
                                        <field name="function_fileserver"/>
                                        <field name="function_database"/>
                                        <field name="function_vpn"/>
                                        <field name="function_firewall"/>
                                        <field name="function_dhcp"/>
                                        <field name="function_ap"/>
                                    </group>
                                </group>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            </field>
        </record>