mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 13:12:03 +02:00
62 lines
2.3 KiB
XML
62 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="iot_system_tree" model="ir.ui.view">
|
|
<field name="name">iot.communication.system.tree</field>
|
|
<field name="model">iot.communication.system</field>
|
|
<field name="arch" type="xml">
|
|
<tree create="0" delete="0">
|
|
<field name="name" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="iot_system_form" model="ir.ui.view">
|
|
<field name="name">iot.communication.system.form</field>
|
|
<field name="model">iot.communication.system</field>
|
|
<field name="arch" type="xml">
|
|
<form create="0" delete="0" edit="0">
|
|
<header />
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="name" />
|
|
</h1>
|
|
</div>
|
|
<notebook>
|
|
<page string="Devices" id="devices">
|
|
<field name="device_ids" readonly="True" />
|
|
</page>
|
|
<page string="Actions" id="actions">
|
|
<field
|
|
name="communication_system_action_ids"
|
|
readonly="True"
|
|
/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="iot_system_action_tree" model="ir.ui.view">
|
|
<field name="name">iot.communication.system.action.tree</field>
|
|
<field name="model">iot.communication.system.action</field>
|
|
<field name="arch" type="xml">
|
|
<tree create="0" delete="0">
|
|
<field name="name" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record model="ir.actions.act_window" id="iot_system_action">
|
|
<field name="name">IoT System</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">iot.communication.system</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
<menuitem
|
|
name="Systems"
|
|
sequence="90"
|
|
id="iot_system_menu"
|
|
action="iot_system_action"
|
|
parent="iot_configuration_menu"
|
|
groups="group_iot_manager"
|
|
/>
|
|
</odoo>
|