|
@@ -6,7 +6,7 @@
|
|
|
<field name="name">system.instance.tree</field>
|
|
|
<field name="model">system.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';gray:state == 'destroyed'" delete="false" copy="false">
|
|
|
+ <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" />
|
|
@@ -42,6 +42,13 @@
|
|
|
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"
|
|
@@ -148,6 +155,46 @@
|
|
|
</field>
|
|
|
</record>
|
|
|
|
|
|
+ <!-- odoo.management.config form -->
|
|
|
+ <record id="odoo_management_config_form_view" model="ir.ui.view">
|
|
|
+ <field name="name">Preferencias</field>
|
|
|
+ <field name="model">odoo.management.config</field>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <form string="Preferencias">
|
|
|
+ <header>
|
|
|
+ <button string="Guardar" type="object" name="execute" class="oe_highlight" />
|
|
|
+ or
|
|
|
+ <button string="Cancelar" type="object" name="cancel" class="oe_link" />
|
|
|
+ </header>
|
|
|
+ <div name="general">
|
|
|
+ <group>
|
|
|
+ <group string="Docker">
|
|
|
+ <field name="docker_sock" />
|
|
|
+ <field name="docker_exclusion" widget="many2many_tags" context="{'model': None}" />
|
|
|
+ </group>
|
|
|
+ <group />
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
+ <group string="Odoo">
|
|
|
+ <field name="odoo_image" />
|
|
|
+ <field name="odoo_network" />
|
|
|
+ <field name="odoo_ports_range" />
|
|
|
+ <field name="odoo_root_path" />
|
|
|
+ <field name="odoo_db" />
|
|
|
+ </group>
|
|
|
+ <group />
|
|
|
+ </group>
|
|
|
+ <group>
|
|
|
+ <group string="Git">
|
|
|
+ <field name="git_path" />
|
|
|
+ </group>
|
|
|
+ <group />
|
|
|
+ </group>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
<!-- system.instance action -->
|
|
|
<record id="odoo_container_action" model="ir.actions.act_window">
|
|
|
<field name="name">Sistemas Odoo</field>
|
|
@@ -176,6 +223,15 @@
|
|
|
</field>
|
|
|
</record>
|
|
|
|
|
|
+ <!-- odoo.management.config action -->
|
|
|
+ <record id="odoo_management_config_action" model="ir.actions.act_window">
|
|
|
+ <field name="name">Configuración</field>
|
|
|
+ <field name="type">ir.actions.act_window</field>
|
|
|
+ <field name="res_model">odoo.management.config</field>
|
|
|
+ <field name="view_mode">form</field>
|
|
|
+ <field name="target">inline</field>
|
|
|
+ </record>
|
|
|
+
|
|
|
<!-- root menu -->
|
|
|
<menuitem id="sysadmin_menu_root" name="Administración de Sistemas" />
|
|
|
|
|
@@ -185,7 +241,7 @@
|
|
|
|
|
|
<!-- configuration menu -->
|
|
|
<menuitem id="configuration_menu_categ" name="Configuración" parent="sysadmin_menu_root" />
|
|
|
- <menuitem id="payment_plan_menu_act" name="Planes" parent="configuration_menu_categ" action="payment_plan_action" />
|
|
|
- <menuitem id="configuration_menu_act" name="Configuración" parent="configuration_menu_categ" action="payment_plan_action" />
|
|
|
+ <menuitem id="payment_plan_menu_act" name="Planes de pago" parent="configuration_menu_categ" action="payment_plan_action" />
|
|
|
+ <menuitem id="configuration_menu_act" name="Configuración" parent="configuration_menu_categ" action="odoo_management_config_action" />
|
|
|
</data>
|
|
|
</openerp>
|