<odoo>
    <record id="runbot_merge_backport_form" model="ir.ui.view">
        <field name="name">Backport Wizard</field>
        <field name="model">runbot_merge.pull_requests.backport</field>
        <field name="arch" type="xml">
            <form>
                <field name="pr_id" invisible="1"/>
                <field name="project_id" invisible="1"/>
                <field name="source_seq" invisible="1"/>
                <field name="target" class="w-100"/>
            </form>
        </field>
    </record>

    <record id="runbot_merge_backport_pr_action" model="ir.actions.server">
        <field name="name">Perform backport from current PR</field>
        <field name="type">ir.actions.server</field>
        <field name="model_id" ref="model_runbot_merge_pull_requests"/>
        <field name="binding_model_id" ref="model_runbot_merge_pull_requests"/>
        <field name="state">code</field>
        <field name="code">action = record.backport()</field>
    </record>
</odoo>
