2016-07-08 16:12:12 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2018-07-20 16:23:56 +02:00
|
|
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
2016-07-08 16:12:12 +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-07-08 16:12:12 +02:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Forms -->
|
2017-05-01 19:17:53 +02:00
|
|
|
<record id="golem_member_numberconfig_form" model="ir.ui.view">
|
2016-07-08 16:12:12 +02:00
|
|
|
<field name="name">GOLEM Member number configuration</field>
|
|
|
|
<field name="model">golem.member.numberconfig</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
|
|
|
<group string="GOLEM Member Number configuration">
|
|
|
|
<field name="is_automatic" widget="radio" />
|
|
|
|
<field name="is_per_season" widget="radio"
|
|
|
|
attrs="{'invisible': [('is_automatic', '=', '0')]}"/>
|
|
|
|
<field name="prefix"
|
|
|
|
attrs="{'invisible': [('is_automatic', '=', '0')]}"/>
|
2017-06-05 15:55:50 +02:00
|
|
|
<field name="number_from"
|
|
|
|
attrs="{'invisible': [('is_automatic', '=', '0')]}"/>
|
2016-07-08 16:12:12 +02:00
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
<footer>
|
2017-06-28 15:38:36 +02:00
|
|
|
<button type="object" name="apply_nocompute"
|
2016-07-08 16:12:12 +02:00
|
|
|
string="Apply for new members" />
|
|
|
|
<button type="object" name="apply_recompute"
|
|
|
|
string="Apply and recompute all member numbers"
|
|
|
|
confirm="This action will end to recalculation of all member
|
|
|
|
numbers. Are you really sure you want to do this ?"
|
|
|
|
class="oe_highlight" />
|
|
|
|
<button special="cancel" string="Cancel" />
|
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2017-05-01 19:17:53 +02:00
|
|
|
<act_window id="golem_member_numberconfig_action"
|
2016-07-08 16:12:12 +02:00
|
|
|
name="GOLEM Member Number Config" res_model="golem.member.numberconfig"
|
|
|
|
view_mode="form" target="new" />
|
|
|
|
<!-- Menus -->
|
|
|
|
<menuitem
|
2017-05-01 19:17:53 +02:00
|
|
|
id="golem_member_numberconfig_menu"
|
|
|
|
action="golem_member_numberconfig_action"
|
2018-07-20 16:23:56 +02:00
|
|
|
parent="golem_membership.menu_config_association" sequence="1"
|
2016-07-21 16:45:54 +02:00
|
|
|
groups="golem_base.group_golem_manager" />
|
2016-07-08 16:12:12 +02:00
|
|
|
</data>
|
2017-04-29 09:16:41 +02:00
|
|
|
</odoo>
|