golem/golem_member/wizard/golem_member_analysis_wizard_views.xml

60 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Fabien Bourgeois <fabien@yaltik.com>
Copyright 2019 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>
<!-- Forms -->
<record model="ir.ui.view" id="golem_member_analysis_wizard_view_form">
<field name="name">GOLEM Member Analysis Wizard Form</field>
<field name="model">golem.member.analysis.wizard</field>
<field name="arch" type="xml">
<form string="Member Analysis">
<sheet>
<group>
<field name="season_id" options="{'no_create': True}"/>
<field name="analyse_type"/>
<field name="category_id"
attrs="{'invisible': [('analyse_type', 'not in', ('age_start_tag','age_end_tag'))],
'required': [('analyse_type', 'in', ('age_start_tag','age_end_tag'))]}"
options="{'no_create': True}"/>
</group>
<footer>
<button name="members_analye" string="Analyse Members" type="object"
class="oe_highlight" />
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</sheet>
</form>
</field>
</record>
<!-- Actions -->
<act_window id="golem_analysis_action" name="Analysis"
res_model="golem.member.analysis.wizard" view_mode="form"
target="new"/>
<menuitem id="golem_analysis_menu" name="Members analysis"
parent="golem_membership.menu_association" sequence="15"
action="golem_analysis_action"/>
</data>
</odoo>