mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 09:12:02 +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,53 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2020 Creu Blanca
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="iot_amqp_host_form_view">
|
||||
<field name="name">iot.amqp.host.form (in iot_amqp)</field>
|
||||
<field name="model">iot.amqp.host</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header />
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="connection" placeholder="amqp://USER:PASS@HOST" />
|
||||
</group>
|
||||
</sheet>
|
||||
<div class="oe_chatter" />
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="iot_amqp_host_search_view">
|
||||
<field name="name">iot.amqp.host.search (in iot_amqp)</field>
|
||||
<field name="model">iot.amqp.host</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name" />
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="iot_amqp_host_tree_view">
|
||||
<field name="name">iot.amqp.host.tree (in iot_amqp)</field>
|
||||
<field name="model">iot.amqp.host</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="iot_amqp_host_act_window">
|
||||
<field name="name">Amqp Host</field>
|
||||
<field name="res_model">iot.amqp.host</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[]</field>
|
||||
<field name="context">{}</field>
|
||||
</record>
|
||||
<menuitem
|
||||
name="AMQP Hosts"
|
||||
sequence="80"
|
||||
id="iot_amqp_host_menu"
|
||||
action="iot_amqp_host_act_window"
|
||||
parent="iot_oca.iot_configuration_menu"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<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="inherit_id" ref="iot_output_oca.iot_device_output_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='communication_system_id']/../.."
|
||||
position="after"
|
||||
>
|
||||
<group
|
||||
string="AMQP configuration"
|
||||
name="amqp_config"
|
||||
attrs="{'invisible': [('communication_system_id', '!=', %(iot_amqp_oca.amqp_system)s)]}"
|
||||
>
|
||||
<field
|
||||
name="amqp_host_id"
|
||||
attrs="{'required': [('communication_system_id', '=', %(iot_amqp_oca.amqp_system)s)]}"
|
||||
/>
|
||||
<field
|
||||
name="amqp_exchange"
|
||||
attrs="{'required': [('communication_system_id', '=', %(iot_amqp_oca.amqp_system)s)]}"
|
||||
/>
|
||||
<field
|
||||
name="amqp_routing_key"
|
||||
attrs="{'required': [('communication_system_id', '=', %(iot_amqp_oca.amqp_system)s)]}"
|
||||
/>
|
||||
<field name="amqp_payload" />
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button
|
||||
name="device_run_action"
|
||||
type="object"
|
||||
context="{'iot_system_action_id': %(iot_amqp_oca.amqp_action)s}"
|
||||
icon="fa-cogs"
|
||||
string="Run"
|
||||
attrs="{'invisible': [('communication_system_id', '!=', %(iot_amqp_oca.amqp_system)s)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue