<odoo>
    <record model="runbot.category" id="runbot.default_category">
        <field name="name">Default</field>
        <field name="icon">gear</field>
    </record>
    <record model="runbot.category" id="runbot.nightly_category">
        <field name="name">Nightly</field>
        <field name="icon">moon-o</field>
    </record>
    <record model="runbot.category" id="runbot.weekly_category">
        <field name="name">Weekly</field>
        <field name="icon">tasks</field>
    </record>

    <record model="runbot.project" id="runbot.main_project">
        <field name="name">R&amp;D</field>
    </record>

    <data noupdate="1">
        <record model="ir.config_parameter" id="runbot.runbot_upgrade_exception_message">
            <field name="key">runbot.runbot_upgrade_exception_message</field>
            <field name="value">Upgrade exception [#{exception.id}]({base_url}/odoo/runbot.upgrade.exception/{exception.id}) added\
    {exception.elements}
            </field>
        </record>

        <record model="ir.config_parameter" id="runbot.runbot_default_odoorc">
            <field name="key">runbot.runbot_default_odoorc</field>
            <field name="value">[options]
admin_passwd=running_master_password</field>
        </record>

        <record model="ir.config_parameter" id="runbot.runbot_default_logdb_name">
            <field name="key">runbot.logdb_name</field>
            <field name="value">runbot_logs</field>
        </record>

    </data>

    <record model="ir.config_parameter" id="runbot.runbot_disable_host_on_fetch_failure">
        <field name="key">runbot.runbot_disable_host_on_fetch_failure</field>
        <field name="value"></field>
    </record>

    <record model="ir.config_parameter" id="runbot.runbot_dockerfile_public_by_default">
        <field name="key">runbot.runbot_dockerfile_public_by_default</field>
        <field name="value"></field>
    </record>

    <record model="ir.config_parameter" id="runbot.runbot_is_base_regex">
        <field name="key">runbot.runbot_is_base_regex</field>
        <field name="value">^((master)|(saas-)?\d+\.\d+)$</field>
    </record>

    <record model="ir.config_parameter" id="runbot.use_ssl">
        <field name="key">runbot.use_ssl</field>
        <field name="value">True</field>
    </record>

    <record model="ir.config_parameter" id="runbot.runbot_forwardport_author">
        <field name="key">runbot.runbot_forwardport_author</field>
        <field name="value">fw-bot</field>
    </record>

    <record model="ir.config_parameter" id="runbot.runbot_organisation">
        <field name="key">runbot.runbot_organisation</field>
        <field name="value">odoo</field>
    </record>

    <record model="ir.actions.server" id="action_toggle_is_base">
        <field name="name">Mark is base</field>
        <field name="model_id" ref="runbot.model_runbot_bundle" />
        <field name="binding_model_id" ref="runbot.model_runbot_bundle" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.write({'is_base': True})
        </field>
    </record>
    <record model="ir.actions.server" id="action_mark_no_build">
        <field name="name">Mark no build</field>
        <field name="model_id" ref="runbot.model_runbot_bundle" />
        <field name="binding_model_id" ref="runbot.model_runbot_bundle" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.write({'no_build': True})
        </field>
    </record>
    <record model="ir.actions.server" id="action_mark_build">
        <field name="name">Mark build</field>
        <field name="model_id" ref="runbot.model_runbot_bundle" />
        <field name="binding_model_id" ref="runbot.model_runbot_bundle" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.write({'no_build': False})
        </field>
    </record>

    <record id="ir_cron_runbot" model="ir.cron">
        <field name="name">Runbot</field>
        <field name="active" eval="False"/>
        <field name="interval_number">10</field>
        <field name="interval_type">seconds</field>
        <field name="model_id" ref="model_runbot_runbot"/>
        <field name="code">model._cron()</field>
        <field name="state">code</field>
    </record>
</odoo>
