GOLEM/golem_member/views/golem_partner_area_views.xml

91 lines
2.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
Copyright 2018 Youssef El Ouahby <youssef@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">
2018-10-11 18:24:47 +02:00
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
2018-10-12 02:48:10 +02:00
<field name="parent_id"/>
</tree>
</field>
</record>
2018-10-11 18:24:47 +02:00
<!-- Form -->
<record model="ir.ui.view" id="golem_partner_area_view_form">
<field name="name">GOLEM Partner Area Form</field>
<field name="model">golem.partner.area</field>
<field name="arch" type="xml">
<form>
<group>
<group>
<field name="name" />
</group>
<group>
<field name="parent_id" />
<field name="root_id" />
</group>
</group>
<group>
<field name="area_street_ids">
<tree editable="bottom">
<field name="name" />
</tree>
</field>
2018-10-11 18:24:47 +02:00
</group>
</form>
</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" />
<field name="parent_id" />
2018-10-12 02:48:10 +02:00
<filter name="sub_territories" string="Sub Territories"
domain="[('parent_id', '!=', False)]" />
<filter name="root_territories" string="Root Territories"
domain="[('parent_id', '=', False)]" />
<filter name="group_parent" string="Parent"
context="{'group_by': 'parent_id'}" />
</search>
</field>
</record>
<!-- Actions -->
<act_window id="golem_partner_area_action" name="Areas"
res_model="golem.partner.area" view_mode="tree,form" />
<!-- Menus -->
<menuitem id="golem_partner_area_menu" name="Areas"
2018-08-27 10:38:40 +02:00
parent="golem_membership.menu_config_association" sequence="20"
action="golem_partner_area_action" />
</data>
</odoo>