2016-06-25 18:06:40 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Copyright 2016 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/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<!-- Forms -->
|
2016-06-26 09:30:08 +02:00
|
|
|
<record id="view_form" model="ir.ui.view">
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="name">GOLEM Member Form</field>
|
|
|
|
<field name="model">golem.member</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
2016-06-26 08:51:09 +02:00
|
|
|
<group>
|
|
|
|
<div class="oe_title">
|
|
|
|
<h1>
|
|
|
|
<field name="image" widget="image" class="oe_left oe_avatar"
|
|
|
|
options="{'preview_image': 'image_medium', 'size': [90, 90]}" />
|
|
|
|
<field name="name" class="oe_inline" readonly="True" />
|
|
|
|
</h1>
|
|
|
|
</div>
|
2016-07-07 17:16:43 +02:00
|
|
|
<group>
|
|
|
|
<field name="season_ids" widget="many2many_tags" />
|
|
|
|
</group>
|
2016-06-26 08:51:09 +02:00
|
|
|
</group>
|
2016-06-25 18:06:40 +02:00
|
|
|
<group string="Personal details">
|
|
|
|
<group>
|
2016-07-08 16:12:12 +02:00
|
|
|
<field name="is_number_manual" invisible="True" />
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="lastname" required="True" />
|
|
|
|
<field name="firstname" required="True" />
|
2016-07-08 16:12:12 +02:00
|
|
|
<field name="number" readonly="True"
|
|
|
|
attrs="{'invisible': [('is_number_manual', '=', True)]}" />
|
|
|
|
<field name="number_manual"
|
|
|
|
attrs="{'invisible': [('is_number_manual', '=', False)]}" />
|
2016-06-25 18:06:40 +02:00
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="gender" />
|
|
|
|
<field name="birthdate_date" />
|
|
|
|
<field name="nationality_id" />
|
|
|
|
<field name="function" />
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<notebook>
|
|
|
|
<page name="contact_details" string="Contact details">
|
|
|
|
<group string="Address">
|
|
|
|
<group>
|
|
|
|
<field name="street" placeholder="Street..." />
|
|
|
|
<field name="street2" />
|
|
|
|
<field name="zip" placeholder="ZIP" />
|
|
|
|
<field name="city" placeholder="City" />
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="state_id" class="oe_no_button"
|
|
|
|
placeholder="State" />
|
|
|
|
<field name="country_id" placeholder="Country"
|
|
|
|
class="oe_no_button" />
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group string="Communication">
|
|
|
|
<group>
|
|
|
|
<field name="phone" placeholder="0000000000"
|
|
|
|
widget="phonefr" />
|
|
|
|
<field name="mobile" placeholder="0000000000"
|
|
|
|
widget="phonefr" />
|
|
|
|
<field name="pictures_agreement"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="email" widget="email"
|
|
|
|
placeholder="name@example.org" />
|
|
|
|
<field name="opt_out" />
|
2016-06-25 22:07:59 +02:00
|
|
|
<field name="opt_out_sms" />
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="website" widget="url"
|
|
|
|
placeholder="e.g. www.odoo.com"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page name="other_page" string="Others">
|
|
|
|
<group>
|
2016-06-25 21:16:35 +02:00
|
|
|
<field name="category_id" widget="many2many_tags"
|
2016-06-25 18:06:40 +02:00
|
|
|
placeholder="Tags..."/>
|
|
|
|
<field name="comment" placeholder="Put an internal note..." />
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers" />
|
|
|
|
<field name="message_ids" widget="mail_thread" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Trees -->
|
2016-06-26 09:30:08 +02:00
|
|
|
<record model="ir.ui.view" id="view_tree">
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="name">GOLEM Member Tree/List</field>
|
|
|
|
<field name="model">golem.member</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="GOLEM Members">
|
2016-07-11 07:27:06 +02:00
|
|
|
<field name="season_ids" />
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="number" />
|
|
|
|
<field name="name" />
|
|
|
|
<field name="contact_address" />
|
|
|
|
<field name="phone" />
|
|
|
|
<field name="mobile" />
|
|
|
|
<field name="email" widget="email" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Searches -->
|
2016-06-26 09:30:08 +02:00
|
|
|
<record id="view_filter" model="ir.ui.view">
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="name">GOLEM Member Filters</field>
|
|
|
|
<field name="model">golem.member</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
2016-06-25 21:16:35 +02:00
|
|
|
<field name="number" />
|
|
|
|
<field name="name" />
|
2016-07-07 17:16:43 +02:00
|
|
|
<field name="season_ids" widget="many2one" />
|
2016-06-25 21:16:35 +02:00
|
|
|
<field name="contact_address" />
|
|
|
|
<field name="city" />
|
|
|
|
<field name="phone" />
|
|
|
|
<field name="mobile" />
|
|
|
|
<field name="email" />
|
2016-06-26 06:34:08 +02:00
|
|
|
<field name="category_id" widget="many2one" />
|
2016-07-07 17:16:43 +02:00
|
|
|
<filter name="season_default" string="Default season"
|
|
|
|
domain="[('is_current', '=', True)]" />
|
2016-06-25 18:36:43 +02:00
|
|
|
<group string="Group By">
|
2016-06-27 22:23:41 +02:00
|
|
|
<filter name="group_age" string="By age"
|
|
|
|
context="{'group_by': 'is_minor'}"/>
|
|
|
|
<filter name="group_gender" string="By gender"
|
|
|
|
context="{'group_by': 'gender'}"/>
|
2016-06-25 18:36:43 +02:00
|
|
|
<filter name="group_city" string="By city"
|
|
|
|
context="{'group_by': 'city'}"/>
|
|
|
|
</group>
|
2016-06-25 18:06:40 +02:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Graphs -->
|
|
|
|
<record model="ir.ui.view" id="view_graph_golem_member">
|
|
|
|
<field name="name">GOLEM Member Graph</field>
|
|
|
|
<field name="model">golem.member</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="GOLEM Members" type="pivot">
|
|
|
|
<field name="partner_id" />
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2016-06-26 09:30:08 +02:00
|
|
|
<act_window id="action"
|
2016-06-25 18:06:40 +02:00
|
|
|
name="GOLEM Members"
|
|
|
|
res_model="golem.member"
|
2016-07-07 17:16:43 +02:00
|
|
|
view_mode="kanban,tree,form,graph"
|
|
|
|
context="{'search_default_season_default': True}" />
|
2016-06-25 18:06:40 +02:00
|
|
|
<record model="ir.actions.act_window.view"
|
2016-06-26 09:30:08 +02:00
|
|
|
id="view_kanban">
|
2016-06-25 18:06:40 +02:00
|
|
|
<field name="view_mode">kanban</field>
|
|
|
|
<field name="view_id" ref="base.res_partner_kanban_view"/>
|
2016-06-26 09:30:08 +02:00
|
|
|
<field name="act_window_id" ref="action"/>
|
2016-06-25 18:06:40 +02:00
|
|
|
</record>
|
2016-06-26 09:30:08 +02:00
|
|
|
<act_window id="tags_action_list" name="GOLEM Members Tags"
|
2016-06-25 21:49:02 +02:00
|
|
|
res_model="res.partner.category" view_mode="tree,form" />
|
2016-06-25 18:06:40 +02:00
|
|
|
|
|
|
|
<!-- Menu items -->
|
2016-06-25 21:49:02 +02:00
|
|
|
<menuitem id="golem_members_menu" name="GOLEM Members"
|
2016-06-25 21:16:35 +02:00
|
|
|
parent="membership.menu_membership" sequence="5"
|
2016-06-26 09:30:08 +02:00
|
|
|
action="action" />
|
2016-06-25 21:49:02 +02:00
|
|
|
<menuitem id="golem_members_menu_tags" name="Member Tags"
|
|
|
|
parent="base.menu_marketing_config_association" sequence="10"
|
2016-06-26 09:30:08 +02:00
|
|
|
action="tags_action_list" />
|
2016-06-25 18:06:40 +02:00
|
|
|
</data>
|
|
|
|
</openerp>
|