2016-06-26 06:31:15 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2020-05-28 17:57:13 +02:00
|
|
|
Copyright 2016-2020 Fabien Bourgeois <fabien@yaltik.com>
|
2016-06-26 06:31:15 +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-26 06:31:15 +02:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Forms -->
|
2017-05-01 16:27:16 +02:00
|
|
|
<record id="golem_season_view_form" model="ir.ui.view">
|
2016-06-26 06:31:15 +02:00
|
|
|
<field name="name">GOLEM Season Form</field>
|
|
|
|
<field name="model">golem.season</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
2016-07-11 07:11:27 +02:00
|
|
|
<div class="oe_right">
|
|
|
|
<button name="do_default_season" type="object"
|
|
|
|
string="Make this season as default" class="oe_highlight"
|
|
|
|
help="Default season for views ?"
|
|
|
|
attrs="{'invisible': [('is_default', '=', True)]}" />
|
|
|
|
</div>
|
2016-06-26 06:31:15 +02:00
|
|
|
<group string="Season">
|
2016-07-11 07:11:27 +02:00
|
|
|
<field name="is_default" invisible="True" />
|
2018-01-18 15:27:35 +01:00
|
|
|
<field name="name" attrs="{'required': True}" />
|
2018-08-27 11:50:10 +02:00
|
|
|
<field name="membership_ids" widget="many2many"
|
2018-02-28 08:40:28 +01:00
|
|
|
options="{'no_create': True}" />
|
2018-01-16 17:08:15 +01:00
|
|
|
<field name="date_start"
|
|
|
|
attrs="{'required': [('date_end', '!=', False)]}" />
|
|
|
|
<field name="date_end"
|
|
|
|
attrs="{'required': [('date_start', '!=', False)]}" />
|
2016-06-26 06:31:15 +02:00
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Trees -->
|
2017-05-01 16:27:16 +02:00
|
|
|
<record id="golem_season_view_tree" model="ir.ui.view">
|
2016-06-26 06:31:15 +02:00
|
|
|
<field name="name">GOLEM Seasons</field>
|
|
|
|
<field name="model">golem.season</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree>
|
|
|
|
<field name="name" />
|
2016-06-26 09:24:57 +02:00
|
|
|
<field name="is_default" />
|
2016-06-26 06:31:15 +02:00
|
|
|
<field name="date_start" />
|
|
|
|
<field name="date_end" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Search -->
|
2017-05-01 17:23:57 +02:00
|
|
|
<record id="golem_season_search" model="ir.ui.view">
|
2016-06-26 06:31:15 +02:00
|
|
|
<field name="name">GOLEM Seasons Filters</field>
|
|
|
|
<field name="model">golem.season</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
|
|
|
<field name="name" />
|
2016-06-26 09:24:57 +02:00
|
|
|
<filter name="default_season" string="Default season"
|
|
|
|
domain="[('is_default', '=', True)]" />
|
2016-06-26 06:31:15 +02:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2017-05-01 16:27:16 +02:00
|
|
|
<act_window id="golem_season_action" name="GOLEM Seasons"
|
2016-06-26 06:31:15 +02:00
|
|
|
res_model="golem.season" view_mode="tree,form" />
|
2017-05-01 16:27:16 +02:00
|
|
|
|
2016-06-26 06:31:15 +02:00
|
|
|
<!-- Menus -->
|
2017-06-05 17:30:30 +02:00
|
|
|
<menuitem id="golem_season_menu" name="GOLEM Seasons" sequence="100"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
2017-06-05 17:30:30 +02:00
|
|
|
web_icon="golem_season,static/description/icon.png" />
|
|
|
|
<menuitem id="golem_season_menu_list" name="Seasons" sequence="1"
|
|
|
|
parent="golem_season_menu" action="golem_season_action"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
2016-06-26 06:31:15 +02:00
|
|
|
|
|
|
|
</data>
|
2017-04-29 09:16:41 +02:00
|
|
|
</odoo>
|