123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <!-- odoo_management configuration assets -->
- <template id="odoo_management.assets" inherit_id="web.assets_backend">
- <xpath expr="." position="inside">
- <link rel="stylesheet" href="/odoo_management/static/src/css/main.css" />
- <script type="text/javascript" src="/odoo_management/static/src/js/main.js" />
- </xpath>
- </template>
-
- <!-- ==================================================================================== -->
- <!-- | TREES | -->
- <!-- ==================================================================================== -->
- <!-- odoo.instance tree view -->
- <record id="odoo_instance_tree_view" model="ir.ui.view">
- <field name="name">odoo.instance.tree</field>
- <field name="model">odoo.instance</field>
- <field name="arch" type="xml">
- <tree colors="green:running == True and state == 'activated';red:running == False and state == 'activated';blue:state == 'draft';yellow:state == 'disapproved';orange:state == 'suspended';gray:state == 'destroyed'" delete="false" copy="false">
- <field name="name" />
- <field name="domain" class="oe_link" />
- <field name="demo" />
- <field name="running" />
- <field name="state" invisible="1" />
- <button
- type="object"
- name="action_start"
- icon="gtk-media-play"
- string="Arrancar"
- attrs="{'invisible': ['|', ('running', '=', True), ('state', '!=', 'activated')]}" />
- <button
- type="object"
- name="action_restart"
- icon="gtk-refresh"
- string="Parar y arrancar"
- attrs="{'invisible': ['|', ('running', '=', False), ('state', '!=', 'activated')]}" />
- </tree>
- </field>
- </record>
- <!-- payment.plan tree view -->
- <record id="payment_plan_tree_view" model="ir.ui.view">
- <field name="name">payment.plan.tree</field>
- <field name="model">payment.plan</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name" />
- <field name="amount" />
- </tree>
- </field>
- </record>
- <!-- odoo.module.package tree view -->
- <record id="odoo_module_package_tree_view" model="ir.ui.view">
- <field name="name">odoo.module.package.tree</field>
- <field name="model">odoo.module.package</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name" />
- <field name="module_ids" />
- </tree>
- </field>
- </record>
- <!-- odoo.module.package tree view -->
- <record id="odoo_module_tree_view" model="ir.ui.view">
- <field name="name">odoo.module.tree</field>
- <field name="model">odoo.module</field>
- <field name="arch" type="xml">
- <tree editable="false" create="false" delete="false">
- <field name="name" />
- <field name="technical_name" />
- <field name="author" />
- </tree>
- </field>
- </record>
- <!-- ==================================================================================== -->
- <!-- | FORMS | -->
- <!-- ==================================================================================== -->
- <!-- odoo.instance form view -->
- <record id="odoo_instance_form_view" model="ir.ui.view">
- <field name="name">odoo.instance.form</field>
- <field name="model">odoo.instance</field>
- <field name="arch" type="xml">
- <form string="Sistema Odoo" delete="false" duplicate="false" copy="false">
- <header>
- <button
- name="action_activate"
- states="draft,suspended"
- string="Activar"
- type="object"
- class="oe_highlight"
- modifiers="{'invisible': ['|', ('id', '=', False), ('state', 'not in', ['draft', 'suspended'])]}" />
- <button
- name="action_disapprove"
- states="draft"
- string="No aprobar"
- type="object"
- class="oe_danger"
- modifiers="{'invisible': ['|', ('id', '=', False), ('state', '!=', 'draft')]}" />
- <button
- name="action_suspend"
- states="activated"
- string="Suspender"
- type="object"
- class="oe_highlight"
- modifiers="{'invisible': [('state', '!=', 'activated')]}" />
- <button
- name="action_destroy"
- states="activated,suspended"
- string="Eliminar"
- type="object"
- class="oe_highlight"
- modifiers="{'invisible': [('state', 'not in', ['activated', 'suspended'])]}" />
- <field
- name="state"
- widget="statusbar"
- statusbar="draft,activated,disapproved,suspended,destroyed"
- statusbar_colors="{'activated':'blue','destroyed':'red'}" />
- </header>
- <sheet>
- <div class="oe_button_box oe_right">
- <button
- type="object"
- name="action_start"
- icon="fa-play"
- string="Arrancar"
- class="oe_inline oe_stat_button"
- attrs="{'invisible': ['|', ('running', '=', True), ('state', '!=', 'activated')]}" />
- <button
- type="object"
- name="action_restart"
- icon="fa-refresh"
- string="Parar y arrancar"
- class="oe_inline oe_stat_button"
- attrs="{'invisible': ['|', ('running', '=', False), ('state', '!=', 'activated')]}" />
- </div>
- <div class="oe_left" style="width: 500px;">
- <field name="logo" widget="image" class="oe_avatar oe_left" modifiers="{}" />
- <div class="oe_title" style="width: 390px;">
- <label class="oe_edit_only" for="name" string="Name" />
- <h1>
- <field name="name" class="oe_inline" modifiers="{'required': true}" />
- </h1>
- <field name="normalized_name" />
- </div>
- </div>
- <group>
- <group string="Información del Servicio">
- <field name="payment_plan_id" widget="selection" />
- <field name="domain" />
- <field name="demo" />
- <field name="running" />
- </group>
- <group string="Información del Contenedor">
- <field name="internal_ip" />
- <field name="internal_port" />
- <field name="external_ip" />
- <field name="external_port" />
- <field name="expose_ip" />
- </group>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- payment.plan form view -->
- <record id="payment_plan_form_view" model="ir.ui.view">
- <field name="name">payment.plan.form</field>
- <field name="model">payment.plan</field>
- <field name="arch" type="xml">
- <form>
- <sheet>
- <div class="oe_title oe_left">
- <label class="oe_edit_only" for="name" string="Name" />
- <h1>
- <field name="name" class="oe_inline" />
- </h1>
- </div>
- <group>
- <group string="Información de pago">
- <field name="amount" />
- </group>
- <group string="Información del servicio">
- <field name="storage_limit" />
- <field name="ttl" />
- </group>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- odoo.module.package form view -->
- <record id="odoo_module_package_form_view" model="ir.ui.view">
- <field name="name">odoo.module.package.form</field>
- <field name="model">odoo.module.package</field>
- <field name="arch" type="xml">
- <form>
- <sheet>
- <div class="oe_title oe_left">
- <label class="oe_edit_only" for="name" string="Name" />
- <h1>
- <field name="name" class="oe_inline" />
- </h1>
- </div>
- <field name="module_ids">
- <tree editable="bottom" create="false" delete="false">
- <field name="name" />
- <field name="technical_name" />
- <field name="author" />
- </tree>
- </field>
- </sheet>
- </form>
- </field>
- </record>
- <!-- ==================================================================================== -->
- <!-- | ACTIONS | -->
- <!-- ==================================================================================== -->
- <!-- odoo.instance action -->
- <record id="odoo_container_action" model="ir.actions.act_window">
- <field name="name">Sistemas Odoo</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">odoo.instance</field>
- <field name="view_mode">tree,form</field>
- <field name="view_type">form</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Cree una nueva instancia de Odoo
- </p>
- </field>
- </record>
- <!-- odoo.module.package action -->
- <record id="odoo_module_package_action" model="ir.actions.act_window">
- <field name="name">Paquete de Módulos</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">odoo.module.package</field>
- <field name="view_mode">tree,form</field>
- <field name="view_type">form</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Cree una nuevo paquete de módulos
- </p>
- </field>
- </record>
- <!-- payment.plan action -->
- <record id="payment_plan_action" model="ir.actions.act_window">
- <field name="name">Planes de Pago</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">payment.plan</field>
- <field name="view_mode">tree,form</field>
- <field name="view_type">form</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Cree un nuevo plan de pago para su contenedor
- </p>
- </field>
- </record>
- <!-- odoo.management.config action -->
- <record id="odoo_management_config_action" model="ir.actions.client">
- <field name="name">Configuración</field>
- <field name="tag">odoo_management.configuration</field>
- </record>
- <!-- ==================================================================================== -->
- <!-- | MENUS | -->
- <!-- ==================================================================================== -->
- <!-- root menu -->
- <menuitem id="sysadmin_menu_root" name="Administración de Sistemas" />
- <!-- containers menu -->
- <menuitem id="containers_menu_categ" name="Contenedores" parent="sysadmin_menu_root" />
- <menuitem id="systems_menu_act" name="Sistemas" parent="containers_menu_categ" action="odoo_container_action" />
- <menuitem id="tasks_menu_act" name="Tareas automatizadas" parent="containers_menu_categ" action="odoo_container_action" />
- <!-- configuration menu -->
- <menuitem id="configuration_menu_categ" name="Configuración" parent="sysadmin_menu_root" />
- <menuitem id="payment_plan_menu_act" sequence="1" name="Planes de pago" parent="configuration_menu_categ" action="payment_plan_action" />
- <menuitem id="module_packages_menu_act" sequence="2" name="Paquetes de modulos" parent="configuration_menu_categ" action="odoo_module_package_action" />
- <menuitem id="configuration_menu_act" sequence="3" name="Configuración" parent="configuration_menu_categ" action="odoo_management_config_action" />
- </data>
- </openerp>
|