You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="emc_backend_view_form" model="ir.ui.view">
<field name="name">emc_backend_view_form</field>
<field name="model">emc.backend</field>
<field name="arch" type="xml">
<form string="emc_backend_form">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object"
class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button"
options="{'terminology': 'active'}"/>
</button>
</div>
<group>
<field name="name"/>
<field name="location"/>
<field name="api_key"/>
<field name="description"/>
</group>
<footer>
<button name="action_ping"
string="Ping the API (no authentication)"
type="object"
class="oe_highlight"/>
</footer>
</sheet>
</form>
</field>
</record>
<record id="emc_backend_view_tree" model="ir.ui.view">
<field name="name">emc_backend_view_tree</field>
<field name="model">emc.backend</field>
<field name="arch" type="xml">
<tree string="emc_backend_tree">
<field name="location"/>
<field name="api_key"/>
</tree>
</field>
</record>
</odoo>