<commit_before><?xml version="1.0" encoding="utf-8"?>
<!-- infrastructure.instance -->
<openerp>
<data>

<!-- SEARCH VIEW -->
<record id="view_infrastructure_instance_filter" model="ir.ui.view">
    <field name="name">infrastructure.instance.select</field>
    <field name="model">infrastructure.instance</field>
    <field name="arch" type="xml">
        <search string="instance">
            <field name="name"/>
            <field name="main_hostname"/>
            <field name="number"/>
            <field name="xml_rpc_port"/>
            <field name="database_type_id"/>
            <field name="db_filter"/>
            <field name="server_id"/>
            <field name="environment_id"/>
            <filter string="Not Cancel" name="not_cancel" domain="[('state','!=','cancel')]"/>
            <group expand="0" string="Group By...">
                <filter string="Server" context="{'group_by':'server_id'}"/>
                <filter string="Environment" context="{'group_by':'environment_id'}"/>
                <filter string="Type" context="{'group_by':'database_type_id'}"/>
            </group>
        </search>
    </field>
</record>

<!-- FORMVIEW -->
<record id="view_infrastructure_instance_form" model="ir.ui.view">
    <field name="name">infrastructure.instance.form</field>
    <field name="model">infrastructure.instance</field>
    <field name="arch" type="xml">
        <form string="instance">
            <field name="id" invisible="1"/>
            <field name="name" invisible="1"/>
            <field name="docker_image_ids" invisible="1"/>
            <field name="advance_type" invisible="1"/>
            <header>
                <button name="sgn_to_active"
                    states="draft"
                    string="to Active"
                    />
                <button name="action_wfk_set_draft"
                    type="object"
                    states="cancel"
                    string="to Draft"
                    />
                <button name="sgn_cancel"
                    states="active"
                    string="Cancel"
                    />
                <field name="state" widget="statusbar"
                    statusbar_colors='{}'
                    />
            </header>
            <sheet>
                <div class="col-md-6">
                    <h2 class="oe_inline">
                        <field name="server_id" class="oe_inline"/> / <field name="environment_id" options="{'no_create': True}" class="oe_inline"/>
                    </h2>
                    <h1>
                        <field name="database_type_id" options="{'no_create': True}" default_focus="1" placeholder="Type..."/>
                        <field name="main_hostname" widget="url"/>
                    </h1>
                </div>
                <div class="oe_right oe_button_box" name="buttons">
                    <button name="action_view_databases" icon="fa-th-list" type="object" class="oe_stat_button">
                        <field name="database_count" widget="statinfo"/>
                    </button>
                </div>
                <div class="oe_right oe_button_box" name="action_buttons">
                    <button icon="fa-sun-o" type="object" string="Create / Update" class="oe_stat_button" help="Create or update User, Config File, Service File, Start Service and add to System Start Up" name="create_instance" states="draft"/>
                    <button icon="fa-file-text-o" type="object" string="Update Conf" class="oe_stat_button" help="Update Odoo Config File" name="update_conf_file" states="draft"/>
                    <button icon="fa-link" type="object" string="Update Nginx" class="oe_stat_button" help="Update Nginx Configuration" name="update_nginx_site" states="draft"/>
                    <button icon="fa-repeat" type="action" string="Copy Data From..." class="oe_stat_button" name="%(action_infrastructure_copy_data_from_instance_wizard)d" states="active"/>
                    <button icon="fa-copy" type="action" string="Duplicate" class="oe_stat_button" name="%(action_infrastructure_duplicate_instance_wizard)d" states="active"/>
                    <button icon="fa-trash-o" type="action" string="Delete" class="oe_stat_button" name="%(action_infrastructure_instance_delete_wizard)d" states="draft,active"/>
                </div>
                <group>
                    <group>
                        <field name="number"/>
                        <field name="sufix"/>
                        <label for="admin_pass"/>
                        <div>
                            <field
                                name="admin_pass"
                                password="<PASSWORD>"
                                class="oe_inline"/>
                            <button name="show_passwd"
                                string="⇒ View Password"
                                type="object"
                                class="oe_link"/>
                        </div>
                        <field name="db_filter"/>
                        <field name="unaccent"/>
                        <field name="workers"/>
                    </group>
                    <group>
                        <label for="odoo_image_id"/>
                        <div class="address_format">
                            <field name="odoo_image_id" options="{'no_create': True}" style="width: 75%" />
                            <field name="odoo_image_tag_id" options="{'no_create': True}" style="width: 24%" />
                        </div>
                        <label for="pg_image_id"/>
                        <div class="address_format">
                            <field name="pg_image_id" options="{'no_create': True}" style="width: 75%" />
                            <field name="pg_image_tag_id" options="{'no_create': True}" style="width: 24%" />
                        </div>
                        <label for="odoo_container"/>
                        <div>
                            <field name="odoo_container" class="oe_inline"/>
                            <button name="run_odoo_service" string="Run" help="Run docker run" type="object" class="oe_link"/>
                            <button name="restart_odoo_service" string="(Re)Start" help="Run docker restart" type="object" class="oe_link"/>
                            <button name="stop_odoo_service" string="Stop" help="Run docker stop" type="object" class="oe_link"/>
                            <button name="remove_odoo_service" string="Remove" help="Stop and then Run docker rm -f" type="object" class="oe_link"/>
                        </div>
                        <label for="pg_container"/>
                        <div>
                            <field name="pg_container" class="oe_inline"/>
                            <button name="run_pg_service" string="Run" help="Run docker run" type="object" class="oe_link"/>
                            <button name="restart_pg_service" string="(Re)Start" help="Run docker restart" type="object" class="oe_link"/>
                            <button name="stop_pg_service" string="Stop" help="Run docker stop" type="object" class="oe_link"/>
                            <button name="remove_pg_service" string="Remove" help="Stop and then Run docker rm -f" type="object" class="oe_link"/>
                        </div>
                        <field name="service_type"/>
                        <field name="odoo_service_state"/>
                        <label for="databases_state"/>
                        <div>
                            <field
                                name="databases_state"
                                class="oe_inline"/>
                            <button name="refresh_dbs_update_state"
                                string="⇒ Refresh"
                                type="object"
                                states="active"
                                class="oe_link"/><commit_msg>IMP refresh_dbs_update_state visiblity<commit_after><?xml version="1.0" encoding="utf-8"?>
<!-- infrastructure.instance -->
<openerp>
<data>

<!-- SEARCH VIEW -->
<record id="view_infrastructure_instance_filter" model="ir.ui.view">
    <field name="name">infrastructure.instance.select</field>
    <field name="model">infrastructure.instance</field>
    <field name="arch" type="xml">
        <search string="instance">
            <field name="name"/>
            <field name="main_hostname"/>
            <field name="number"/>
            <field name="xml_rpc_port"/>
            <field name="database_type_id"/>
            <field name="db_filter"/>
            <field name="server_id"/>
            <field name="environment_id"/>
            <filter string="Not Cancel" name="not_cancel" domain="[('state','!=','cancel')]"/>
            <group expand="0" string="Group By...">
                <filter string="Server" context="{'group_by':'server_id'}"/>
                <filter string="Environment" context="{'group_by':'environment_id'}"/>
                <filter string="Type" context="{'group_by':'database_type_id'}"/>
            </group>
        </search>
    </field>
</record>

<!-- FORMVIEW -->
<record id="view_infrastructure_instance_form" model="ir.ui.view">
    <field name="name">infrastructure.instance.form</field>
    <field name="model">infrastructure.instance</field>
    <field name="arch" type="xml">
        <form string="instance">
            <field name="id" invisible="1"/>
            <field name="name" invisible="1"/>
            <field name="docker_image_ids" invisible="1"/>
            <field name="advance_type" invisible="1"/>
            <header>
                <button name="sgn_to_active"
                    states="draft"
                    string="to Active"
                    />
                <button name="action_wfk_set_draft"
                    type="object"
                    states="cancel"
                    string="to Draft"
                    />
                <button name="sgn_cancel"
                    states="active"
                    string="Cancel"
                    />
                <field name="state" widget="statusbar"
                    statusbar_colors='{}'
                    />
            </header>
            <sheet>
                <div class="col-md-6">
                    <h2 class="oe_inline">
                        <field name="server_id" class="oe_inline"/> / <field name="environment_id" options="{'no_create': True}" class="oe_inline"/>
                    </h2>
                    <h1>
                        <field name="database_type_id" options="{'no_create': True}" default_focus="1" placeholder="Type..."/>
                        <field name="main_hostname" widget="url"/>
                    </h1>
                </div>
                <div class="oe_right oe_button_box" name="buttons">
                    <button name="action_view_databases" icon="fa-th-list" type="object" class="oe_stat_button">
                        <field name="database_count" widget="statinfo"/>
                    </button>
                </div>
                <div class="oe_right oe_button_box" name="action_buttons">
                    <button icon="fa-sun-o" type="object" string="Create / Update" class="oe_stat_button" help="Create or update User, Config File, Service File, Start Service and add to System Start Up" name="create_instance" states="draft"/>
                    <button icon="fa-file-text-o" type="object" string="Update Conf" class="oe_stat_button" help="Update Odoo Config File" name="update_conf_file" states="draft"/>
                    <button icon="fa-link" type="object" string="Update Nginx" class="oe_stat_button" help="Update Nginx Configuration" name="update_nginx_site" states="draft"/>
                    <button icon="fa-repeat" type="action" string="Copy Data From..." class="oe_stat_button" name="%(action_infrastructure_copy_data_from_instance_wizard)d" states="active"/>
                    <button icon="fa-copy" type="action" string="Duplicate" class="oe_stat_button" name="%(action_infrastructure_duplicate_instance_wizard)d" states="active"/>
                    <button icon="fa-trash-o" type="action" string="Delete" class="oe_stat_button" name="%(action_infrastructure_instance_delete_wizard)d" states="draft,active"/>
                </div>
                <group>
                    <group>
                        <field name="number"/>
                        <field name="sufix"/>
                        <label for="admin_pass"/>
                        <div>
                            <field
                                name="admin_pass"
                                password="<PASSWORD>"
                                class="oe_inline"/>
                            <button name="show_passwd"
                                string="⇒ View Password"
                                type="object"
                                class="oe_link"/>
                        </div>
                        <field name="db_filter"/>
                        <field name="unaccent"/>
                        <field name="workers"/>
                    </group>
                    <group>
                        <label for="odoo_image_id"/>
                        <div class="address_format">
                            <field name="odoo_image_id" options="{'no_create': True}" style="width: 75%" />
                            <field name="odoo_image_tag_id" options="{'no_create': True}" style="width: 24%" />
                        </div>
                        <label for="pg_image_id"/>
                        <div class="address_format">
                            <field name="pg_image_id" options="{'no_create': True}" style="width: 75%" />
                            <field name="pg_image_tag_id" options="{'no_create': True}" style="width: 24%" />
                        </div>
                        <label for="odoo_container"/>
                        <div>
                            <field name="odoo_container" class="oe_inline"/>
                            <button name="run_odoo_service" string="Run" help="Run docker run" type="object" class="oe_link"/>
                            <button name="restart_odoo_service" string="(Re)Start" help="Run docker restart" type="object" class="oe_link"/>
                            <button name="stop_odoo_service" string="Stop" help="Run docker stop" type="object" class="oe_link"/>
                            <button name="remove_odoo_service" string="Remove" help="Stop and then Run docker rm -f" type="object" class="oe_link"/>
                        </div>
                        <label for="pg_container"/>
                        <div>
                            <field name="pg_container" class="oe_inline"/>
                            <button name="run_pg_service" string="Run" help="Run docker run" type="object" class="oe_link"/>
                            <button name="restart_pg_service" string="(Re)Start" help="Run docker restart" type="object" class="oe_link"/>
                            <button name="stop_pg_service" string="Stop" help="Run docker stop" type="object" class="oe_link"/>
                            <button name="remove_pg_service" string="Remove" help="Stop and then Run docker rm -f" type="object" class="oe_link"/>
                        </div>
                        <field name="service_type"/>
                        <field name="odoo_service_state"/>
                        <label for="databases_state"/>
                        <div>
                            <field
                                name="databases_state"
                                class="oe_inline"/>
                            <button name="refresh_dbs_update_state"
                                string="⇒ Refresh"
                                type="object"
                                attrs="{'invisible': ['|', ('databases_state', '=', 'ok'), ('state', '!=', 'active')]}"
                                class="oe_link"/>
{'fraction_non_alphanumeric': 0.1366432610451749, 'fraction_numerical': 0.002734107997265892, 'mean_word_length': 1.5676451818761965, 'pattern_counts': {'":': 0, '<': 239, '<?xml version=': 2, '>': 239, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7304199', 'n_tokens_mistral': 4165, 'n_tokens_neox': 3950, 'n_words': 775}