<odoo>
    <record model="ir.actions.server" id="action_link_build_errors">
        <field name="name">Merge build errors</field>
        <field name="model_id" ref="runbot.model_runbot_build_error" />
        <field name="binding_model_id" ref="runbot.model_runbot_build_error" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.action_link_errors()
        </field>
    </record>
    <record model="ir.actions.server" id="action_link_build_errors_contents">
        <field name="name">Link build errors contents</field>
        <field name="model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="binding_model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.action_link_errors_contents()
        </field>
    </record>
    <record model="ir.actions.server" id="action_clean_build_errors">
        <field name="name">Re-clean build errors</field>
        <field name="model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="binding_model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.action_clean_content()
        </field>
    </record>
    <record model="ir.actions.server" id="action_reassign_build_errors">
        <field name="name">Re-assign build errors</field>
        <field name="model_id" ref="runbot.model_runbot_build_error" />
        <field name="binding_model_id" ref="runbot.model_runbot_build_error" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.action_assign()
        </field>
    </record>
    <record model="ir.actions.server" id="action_deduplicate">
        <field name="name">Deduplicate Error Contents</field>
        <field name="model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="binding_model_id" ref="runbot.model_runbot_build_error_content" />
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            records.action_deduplicate()
        </field>
    </record>
    <record model="ir.actions.server" id="action_view_build_errors">
        <field name="name">View build errors</field>
        <field name="model_id" ref="runbot.model_runbot_build"/>
        <field name="type">ir.actions.server</field>
        <field name="state">code</field>
        <field name="code">
            action = records.action_view_build_errors()
        </field>
    </record>
</odoo>
