mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
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.
52 lines
1.9 KiB
XML
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>
|