Files
stock-logistics-warehouse/stock_measuring_device/views/measuring_device_view.xml
Alexandre Fayolle 02ec5184d4 [ADD] stock_measuring_device
This is a rework of the stock_cubiscan module to allow supporting
different kind of measuring devices, with different communication
protocols. We use components from OCA/connector to abstract the
implementation of the backend (some devices are synchronous, others are
asynchronous...).

Others PR to come for stock_measuring_device_cubiscan and
stock_measuring_device_zippcube.
2021-09-09 17:49:37 +07:00

52 lines
1.9 KiB
XML

<?xml version="1.0" ?>
<odoo>
<record model="ir.ui.view" id="view_measuring_device_form">
<field name="name">measuring.device.form</field>
<field name="model">measuring.device</field>
<field name="arch" type="xml">
<form>
<header>
<button
type="object"
name="open_wizard"
string="Wizard"
class="oe_highlight"
/>
<button
type="object"
name="test_device"
string="Test Device"
attrs="{'invisible': [('id','=',False)]}"
/>
<field name="state" widget="statusbar" />
</header>
<sheet>
<group>
<group name="device">
<field name="name" />
<field name="warehouse_id" />
<field name="device_type" />
</group>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_measuring_device_tree">
<field name="name">measuring.device.tree</field>
<field name="model">measuring.device</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="warehouse_id" />
<field name="device_type" />
</tree>
</field>
</record>
<record id="action_measuring_device_form" model="ir.actions.act_window">
<field name="name">Measuring Devices</field>
<field name="res_model">measuring.device</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>