2016-09-15 16:28:27 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
2017-05-01 23:20:04 +02:00
|
|
|
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
|
2016-09-15 16:28:27 +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-05-01 23:20:04 +02:00
|
|
|
|
2017-04-29 09:16:41 +02:00
|
|
|
<odoo>
|
2016-09-15 16:28:27 +02:00
|
|
|
<data>
|
2017-05-01 23:20:04 +02:00
|
|
|
|
2016-09-16 08:41:41 +02:00
|
|
|
<!-- Form -->
|
2017-05-01 23:20:04 +02:00
|
|
|
<record id="golem_activity_registration_form" model="ir.ui.view">
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="name">Activity registration form</field>
|
|
|
|
<field name="model">golem.activity.registration</field>
|
2016-09-16 08:41:41 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
|
|
|
<group string="Subscription">
|
|
|
|
<field name="member_id" invisible="1" />
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="activity_id" />
|
2016-09-16 08:41:41 +02:00
|
|
|
<field name="season_id" />
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2016-09-15 16:28:27 +02:00
|
|
|
<!-- Tree -->
|
2017-05-01 23:20:04 +02:00
|
|
|
<record id="golem_activity_registration_tree" model="ir.ui.view">
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="name">Activity registration list</field>
|
|
|
|
<field name="model">golem.activity.registration</field>
|
2016-09-15 16:28:27 +02:00
|
|
|
<field name="arch" type="xml">
|
2016-10-10 11:09:57 +02:00
|
|
|
<tree create="true" edit="false" delete="false" editable="top">
|
2016-09-22 14:08:52 +02:00
|
|
|
<field name="season_id" readonly="1" />
|
2018-07-20 10:09:24 +02:00
|
|
|
<field name="member_id" domain="[('is_default', '=', True)]" />
|
|
|
|
<field name="activity_id" domain="[('is_default', '=', True)]" />
|
2016-09-15 16:28:27 +02:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-09-16 08:41:41 +02:00
|
|
|
|
2016-09-15 16:28:27 +02:00
|
|
|
<!-- Search -->
|
2017-05-01 23:20:04 +02:00
|
|
|
<record id="golem_activity_registration_search" model="ir.ui.view">
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="name">GOLEM Activity Registration searches</field>
|
|
|
|
<field name="model">golem.activity.registration</field>
|
2016-09-22 10:15:02 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
|
|
|
<field name="season_id" widget="many2one" />
|
|
|
|
<field name="member_id" widget="many2one" />
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="activity_id" widget="many2one" />
|
2016-09-22 10:15:02 +02:00
|
|
|
<filter name="season_default" string="Default season"
|
2018-07-20 10:09:24 +02:00
|
|
|
domain="[('is_default', '=', True)]" />
|
2017-06-07 16:44:32 +02:00
|
|
|
<filter name="group_season" string="By season"
|
|
|
|
context="{'group_by': 'season_id'}"/>
|
2016-09-22 10:15:02 +02:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-09-16 08:41:41 +02:00
|
|
|
|
2016-09-15 16:28:27 +02:00
|
|
|
<!-- Action -->
|
2017-05-01 23:20:04 +02:00
|
|
|
<record id="golem_activity_registration_action" model="ir.actions.act_window">
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="name">GOLEM Activity Registration List</field>
|
|
|
|
<field name="res_model">golem.activity.registration</field>
|
2016-09-15 16:28:27 +02:00
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
</record>
|
2016-09-16 08:41:41 +02:00
|
|
|
|
2016-09-15 16:28:27 +02:00
|
|
|
<!-- Menu -->
|
2017-05-01 23:20:04 +02:00
|
|
|
<menuitem id="golem_activity_registration_menu" name="Activity registrations"
|
|
|
|
parent="golem_activity.golem_activity_menu"
|
|
|
|
action="golem_activity_registration_action"
|
2016-09-15 16:28:27 +02:00
|
|
|
groups="golem_base.group_golem_user"
|
|
|
|
sequence="20" />
|
2017-05-01 23:20:04 +02:00
|
|
|
|
2016-09-15 16:28:27 +02:00
|
|
|
</data>
|
2017-04-29 09:16:41 +02:00
|
|
|
</odoo>
|