<odoo>
  <data>
    <record id="codeowner_form" model="ir.ui.view">
        <field name="name">runbot.codeowner.form</field>
        <field name="model">runbot.codeowner</field>
        <field name="arch" type="xml">
            <form string="Host">
                <sheet>
                    <group>
                        <field name="project_id"/>
                        <field name="team_id"/>
                        <field name="organisation" invisible="1"/>
                        <field name="github_teams" widget="github_team"/>
                        <field name="regex"/>
                        <field name="version_domain" widget="domain" options="{'model': 'runbot.version', 'in_dialog': True, 'operators': ['in','=', '&lt;', '&gt;']}"/>
                    </group>
                </sheet>
                <chatter/>
            </form>
        </field>
    </record>

    <record id="view_codeowner_tree" model="ir.ui.view">
        <field name="name">runbot.codeowner.list</field>
        <field name="model">runbot.codeowner</field>
        <field name="arch" type="xml">
            <list string="Codeowners">
                <field name="project_id"/>
                <field name="version_domain"/>
                <field name="regex"/>
                <field name="organisation" invisible="1"/>
                <field name="team_id"/>
                <field name="github_teams" widget="github_team"/>
            </list>
        </field>
    </record>

    <record id="open_view_codeowner_tree" model="ir.actions.act_window">
        <field name="name">Codeowner</field>
        <field name="res_model">runbot.codeowner</field>
        <field name="view_mode">list,form</field>
    </record>

  </data>
</odoo>
