2016-06-25 21:17:35 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2017-05-01 23:19:44 +02:00
|
|
|
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
|
2016-06-25 21:17:35 +02:00
|
|
|
|
|
|
|
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/>.
|
|
|
|
-->
|
|
|
|
|
2017-04-29 09:16:41 +02:00
|
|
|
<odoo>
|
2016-06-25 21:17:35 +02:00
|
|
|
<data>
|
2017-05-01 23:19:44 +02:00
|
|
|
|
2016-06-25 21:17:35 +02:00
|
|
|
<!-- Form -->
|
2017-05-01 23:19:44 +02:00
|
|
|
<record model="ir.ui.view" id="golem_member_form_inherit_skills">
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="name">Add skills to Others tab</field>
|
|
|
|
<field name="model">golem.member</field>
|
2017-05-01 23:19:44 +02:00
|
|
|
<field name="inherit_id" ref="golem_member.golem_member_form" />
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="arch" type="xml">
|
2016-07-11 20:24:23 +02:00
|
|
|
<field name="comment" position="before">
|
2016-06-25 22:02:00 +02:00
|
|
|
<field name="is_volunteer" />
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="skill_ids" widget="many2many_tags"
|
|
|
|
placeholder="Skills..." />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-05-01 23:19:44 +02:00
|
|
|
|
2016-06-25 21:17:35 +02:00
|
|
|
<!-- Searches -->
|
2017-05-01 23:19:44 +02:00
|
|
|
<record model="ir.ui.view" id="golem_member_search_inherit_skills">
|
2016-06-25 22:02:00 +02:00
|
|
|
<field name="name">Add Skills Search and Filter</field>
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="model">golem.member</field>
|
2017-05-01 23:19:44 +02:00
|
|
|
<field name="inherit_id" ref="golem_member.golem_member_search" />
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="email" position="after">
|
|
|
|
<field name="skill_ids" widget="many2one" />
|
2016-06-25 22:02:00 +02:00
|
|
|
<filter name="filter_is_volunteer" string="Is volunteer"
|
|
|
|
domain="[('is_volunteer', '=', True)]" />
|
2016-06-25 21:17:35 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-05-01 23:19:44 +02:00
|
|
|
|
2016-06-25 21:17:35 +02:00
|
|
|
<!-- Tree -->
|
2017-05-01 23:19:44 +02:00
|
|
|
<record id="golem_member_skill_tree" model="ir.ui.view">
|
2016-06-25 21:17:35 +02:00
|
|
|
<field name="name">Member skills</field>
|
|
|
|
<field name="model">golem.member.skill</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="top"><field name="name"/></tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-05-01 23:19:44 +02:00
|
|
|
|
2016-06-25 21:17:35 +02:00
|
|
|
<!-- Actions -->
|
2017-05-01 23:19:44 +02:00
|
|
|
<act_window id="golem_member_skill_action" name="GOLEM Member Skills"
|
2016-06-25 21:17:35 +02:00
|
|
|
res_model="golem.member.skill" />
|
2017-05-01 23:19:44 +02:00
|
|
|
|
2016-06-25 21:17:35 +02:00
|
|
|
<!-- Menus -->
|
2017-05-01 23:19:44 +02:00
|
|
|
<menuitem id="golem_member_skill_menu"
|
2016-06-25 21:17:35 +02:00
|
|
|
name="Member skills"
|
2017-05-01 23:19:44 +02:00
|
|
|
parent="membership.menu_marketing_config_association"
|
|
|
|
action="golem_member_skill_action"
|
|
|
|
sequence="15" groups="golem_base.group_golem_manager" />
|
2016-06-25 21:17:35 +02:00
|
|
|
|
|
|
|
</data>
|
2017-04-29 09:16:41 +02:00
|
|
|
</odoo>
|