mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 05:31:59 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="iot_device_output_tree" model="ir.ui.view">
|
||||
<field name="name">iot.device.output.tree</field>
|
||||
<field name="model">iot.device.output</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree delete="0">
|
||||
<field name="name" />
|
||||
<field name="communication_system_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="iot_device_output_form" model="ir.ui.view">
|
||||
<field name="name">iot.device.output.form</field>
|
||||
<field name="model">iot.device.output</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header />
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box" />
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" />
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field
|
||||
name="communication_system_id"
|
||||
domain="[('applies_to', '=', 'output')]"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="iot_device_output_action">
|
||||
<field name="name">IoT Outputs</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">iot.device.output</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<record id="iot_device_output_action_tree" model="ir.ui.view">
|
||||
<field name="name">iot.device.output.action.tree</field>
|
||||
<field name="model">iot.device.output.action</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" delete="0">
|
||||
<field name="status" />
|
||||
<field name="result" />
|
||||
<field name="date_ok" />
|
||||
<button
|
||||
name="run"
|
||||
type="object"
|
||||
string="Run"
|
||||
attrs="{'invisible': [('status', '=', 'ok')]}"
|
||||
/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="iot_device_form" model="ir.ui.view">
|
||||
<field name="name">iot.device.form</field>
|
||||
<field name="model">iot.device</field>
|
||||
<field name="inherit_id" ref="iot_oca.iot_device_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button
|
||||
name="action_show_output"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-terminal"
|
||||
>
|
||||
<field string="Outputs" name="output_count" widget="statinfo" />
|
||||
</button>
|
||||
</xpath>
|
||||
<field name="communication_system_id" position="attributes">
|
||||
<attribute name="domain">[('applies_to', '=', 'device')]</attribute>
|
||||
</field>
|
||||
<page id="actions" position="attributes">
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'invisible': [('communication_system_id', '=', False)]}</attribute>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="iot_device_kanban" model="ir.ui.view">
|
||||
<field name="name">iot.device.kanban</field>
|
||||
<field name="model">iot.device</field>
|
||||
<field name="inherit_id" ref="iot_oca.iot_device_kanban" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@role='menu']/*[1]" position="before">
|
||||
<a
|
||||
type="object"
|
||||
name="action_show_output"
|
||||
role="menuitem"
|
||||
class="dropdown-item"
|
||||
>
|
||||
<i class="fa fa-terminal" />
|
||||
Outputs
|
||||
</a>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue