<odoo>
  <data>

    <record id="commit_view_form" model="ir.ui.view">
        <field name="model">runbot.commit</field>
        <field name="arch" type="xml">
            <form string="Commit">
                <sheet>
                    <group>
                        <field name="name" widget="char_frontend_url"/>
                        <field name="tree_hash"/>
                        <field name="dname"/>
                        <field name="repo_id"/>
                        <field name="date"/>
                        <field name="author"/>
                        <field name="author_email"/>
                        <field name="committer"/>
                        <field name="committer_email"/>
                        <field name="subject"/>
                        <field name="rebase_on_id"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="commit_view_tree" model="ir.ui.view">
        <field name="name">runbot.commit.list</field>
        <field name="model">runbot.commit</field>
        <field name="arch" type="xml">
            <list string="Commits">
                <field name="name" widget="char_frontend_url"/>
                <field name="tree_hash"/>
                <field name="date"/>
                <field name="repo_id"/>
                <field name="author_email"/>
                <field name="committer_email"/>
            </list>
        </field>
    </record>

    <record id="runbot_commit_search_view" model="ir.ui.view">
      <field name="name">runbot.commit.filter</field>
      <field name="model">runbot.commit</field>
      <field name="arch" type="xml">
        <search string="Search commit">
          <field name="name"/>
          <field name="date"/>
          <field name="author"/>
          <field name="author_email"/>
          <field name="committer"/>
          <field name="committer_email"/>
          <field name="subject"/>
        </search>
      </field>
    </record>

    <record id="open_view_commit_tree" model="ir.actions.act_window">
        <field name="name">Commits</field>
        <field name="res_model">runbot.commit</field>
        <field name="view_mode">list,form</field>
    </record>

    <record id="commit_links_view_tree" model="ir.ui.view">
        <field name="name">runbot.commit.link.list</field>
        <field name="model">runbot.commit.link</field>
        <field name="arch" type="xml">
            <list string="Commit Links">
                <field name="commit_id" widget="many2one"/>
                <field name="match_type"/>
                <field name="branch_id" widget="many2one"/>
                <field name="base_commit_id" widget="many2one"/>
                <field name="merge_base_commit_id" widget="many2one"/>
            </list>
        </field>
    </record>

    <record id="runbot_commit_link_search_view" model="ir.ui.view">
      <field name="name">runbot.commit.link.filter</field>
      <field name="model">runbot.commit.link</field>
      <field name="arch" type="xml">
        <search string="Search commit">
          <field name="commit_id"/>
          <field name="match_type"/>
          <field name="branch_id"/>
          <field name="base_commit_id"/>
          <field name="merge_base_commit_id"/>
        </search>
      </field>
    </record>

    <record id="open_view_commit_links_tree" model="ir.actions.act_window">
        <field name="name">Commit Links</field>
        <field name="res_model">runbot.commit.link</field>
        <field name="view_mode">list</field>
    </record>

  </data>
</odoo>
