mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_widget_remote_measure: New module
TT38745
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.1" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="measure_device_form" model="ir.ui.view">
|
||||
<field name="model">remote.measure.device</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<field name="active" invisible="1" />
|
||||
<widget
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
/>
|
||||
<div class="oe_title">
|
||||
<h1><field name="name" placeholder="e.g. Dock 1 Scale" /></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="uom_id" widget="selection" />
|
||||
<field name="host" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="protocol" />
|
||||
<field name="connection_mode" />
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="measure_device_tree" model="ir.ui.view">
|
||||
<field name="model">remote.measure.device</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="host" />
|
||||
<field name="protocol" optional="show" />
|
||||
<field name="uom_id" optional="show" />
|
||||
<field name="connection_mode" optional="show" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="measure_device_kanban" model="ir.ui.view">
|
||||
<field name="model">remote.measure.device</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="name" />
|
||||
<field name="host" />
|
||||
<field name="protocol" />
|
||||
<field name="connection_mode" />
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="oe_kanban_details">
|
||||
<div class="o_kanban_record_top">
|
||||
<div class="o_kanban_record_headings">
|
||||
<strong class="o_kanban_record_title">
|
||||
<field name="name" placeholder="Device name" />
|
||||
</strong>
|
||||
<span class="o_kanban_record_subtitle"><field
|
||||
name="host"
|
||||
/></span>
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="o_text_overflow"><field
|
||||
name="protocol"
|
||||
/></li>
|
||||
<li class="o_text_overflow"><field
|
||||
name="connection_mode"
|
||||
/></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_measure_device" model="ir.actions.act_window">
|
||||
<field name="name">Remote Devices</field>
|
||||
<field name="res_model">remote.measure.device</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
</record>
|
||||
<menuitem id="menu_device_config" name="Devices" parent="base.menu_custom" />
|
||||
<menuitem
|
||||
id="menu_measure_device"
|
||||
parent="menu_device_config"
|
||||
action="action_measure_device"
|
||||
/>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user