<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<odoo>
  <data>

    <!-- Tree -->
    <record model="ir.ui.view" id="golem_partner_area_view_tree">
      <field name="name">GOLEM Partner Area Tree</field>
      <field name="model">golem.partner.area</field>
      <field name="arch" type="xml">
        <tree editable="bottom">
          <field name="sequence" widget="handle" />
          <field name="name" />
        </tree>
      </field>
    </record>

    <!-- Search -->
    <record id="golem_partner_area_view_search" model="ir.ui.view">
      <field name="name">GOLEM Partner Area Search</field>
      <field name="model">golem.partner.area</field>
      <field name="arch" type="xml">
        <search>
          <field name="name" />
        </search>
      </field>
    </record>

    <!-- Actions -->
    <act_window id="golem_partner_area_action"
      name="Areas" res_model="golem.partner.area" view_mode="tree" />

    <!-- Menus -->
    <menuitem id="golem_partner_area_menu" name="Areas"
      parent="golem_membership.menu_config_association" sequence="20"
      action="golem_partner_area_action" />

  </data>
</odoo>