<odoo>
  <data>
    <record id="branch_form" model="ir.ui.view">
        <field name="name">runbot.branch.form</field>
        <field name="model">runbot.branch</field>
        <field name="arch" type="xml">
          <form>
            <header>
              <button name="action_recompute_infos" string="Recompute Infos" type="object" class="oe_highlight"/>
              <button name="action_update_bundle_id" string="Update bundle" type="object" class="oe_highlight"/>
            </header>
            <sheet>
              <group name="branch_group">
                <field name="bundle_id" readonly='0'/>
                <field name="remote_id"/>
                <field name="name"/>
                <field name="branch_url" widget="url"/>
                <field name="is_pr"/>
                <field name="pull_head_name"/>
                <field name="target_branch_name"/>
                <field name="head"/>
                <field name="alive"/>
                <field name="pr_title"/>
                <field name="pr_body"/>
              </group>
            </sheet>
          </form>
        </field>
    </record>


    <record id="branch_view_tree" model="ir.ui.view">
        <field name="name">runbot.branch.list</field>
        <field name="model">runbot.branch</field>
        <field name="arch" type="xml">
            <list string="Branches">
                <field name="create_date"/>
                <field name="remote_id"/>
                <field name="name"/>
            </list>
        </field>
    </record>

    <record id="open_view_branch_tree" model="ir.actions.act_window">
        <field name="name">Branches</field>
        <field name="res_model">runbot.branch</field>
        <field name="view_mode">list,form</field>
    </record>

  </data>
</odoo>
