golem/golem_payment/views/golem_payment_views.xml

88 lines
2.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017-2018 Fabien Bourgeois <fabien@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>
2018-02-05 11:20:45 +01:00
<!-- Forms -->
<record id="golem_payment_schedule_form" model="ir.ui.view">
<field name="name">GOLEM Payment Schedule Form</field>
<field name="model">golem.payment.schedule</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name" />
2018-02-15 10:15:54 +01:00
<field name="season_id" options="{'no_open': True, 'no_create': True}" />
<field name="day_ids">
<tree editable="bottom">
<field name="day" />
<field name="schedule_id" invisible="1" />
</tree>
</field>
2018-02-05 11:20:45 +01:00
<field name="occurences" />
2018-02-08 17:14:49 +01:00
</group>
</sheet>
2018-02-05 11:20:45 +01:00
</form>
</field>
</record>
<!-- Trees -->
<record id="golem_payment_schedule_tree" model="ir.ui.view">
<field name="name">GOLEM Payment Schedule Tree</field>
<field name="model">golem.payment.schedule</field>
<field name="arch" type="xml">
2018-02-05 11:20:45 +01:00
<tree>
<field name="name" />
<field name="season_id" />
<field name="day_ids" invisible="1" />
<field name="day_display" />
<field name="occurences" />
</tree>
</field>
</record>
<!-- Search -->
<record id="golem_payment_schedule_search" model="ir.ui.view">
<field name="name">GOLEM Payment Schedule Filters</field>
<field name="model">golem.payment.schedule</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="season_id" />
2018-02-02 13:57:39 +01:00
<field name="day_ids" />
<filter name="group_season" string="Season"
context="{'group_by': 'season_id'}" />
</search>
</field>
</record>
<!-- Actions -->
<act_window id="golem_payment_schedule_action" name="Payment Schedules"
2018-02-05 11:20:45 +01:00
res_model="golem.payment.schedule" view_mode="tree,form" />
<!-- Menus -->
<menuitem id="golem_payment_schedule_menu_list" sequence="5"
parent="payment.root_payment_menu" action="golem_payment_schedule_action"
groups="golem_base.group_golem_manager" />
</data>
</odoo>