2018-02-16 00:27:35 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
2018-02-20 00:15:23 +01:00
|
|
|
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
|
2018-02-16 00:27:35 +01:00
|
|
|
Copyright 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-21 17:17:55 +01:00
|
|
|
<!--formulaire du modèle golem.activity.queue-->
|
2018-02-19 14:03:13 +01:00
|
|
|
<record model="ir.ui.view" id="queue_form_view">
|
|
|
|
<field name="name">queue.form</field>
|
|
|
|
<field name="model">golem.activity.queue</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Queue Form">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="activity_id"/>
|
|
|
|
<field name="season_id"/>
|
|
|
|
<field name="member_id"/>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-02-21 10:45:53 +01:00
|
|
|
<!--Recherche du modèle golem.activity.queue-->
|
|
|
|
<record model="ir.ui.view" id="queue_search_view">
|
|
|
|
<field name="name">queue.search</field>
|
|
|
|
<field name="model">golem.activity.queue</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search >
|
|
|
|
<field name="member_id"/>
|
|
|
|
<field name="activity_id" readonly='1'/>
|
|
|
|
<group string="Group By">
|
|
|
|
<filter name="group_by_member" string="Member"
|
|
|
|
context="{'group_by': 'member_id'}"/>
|
|
|
|
<filter name="group_by_activity" string="Activity"
|
|
|
|
context="{'group_by': 'activity_id'}"/>
|
2018-02-23 00:22:34 +01:00
|
|
|
<filter name="group_by_is_full_activity" string="Activity full"
|
|
|
|
context="{'group_by': 'is_activity_full'}"/>
|
2018-02-21 10:45:53 +01:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-02-19 14:03:13 +01:00
|
|
|
<!--liste editable du modèle golem.activity.queue-->
|
|
|
|
<record model="ir.ui.view" id="queue_tree_view">
|
|
|
|
<field name="name">queue.tree</field>
|
|
|
|
<field name="model">golem.activity.queue</field>
|
|
|
|
<field name="arch" type="xml">
|
2018-02-23 00:22:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
<tree string="Queue Tree" editable="bottom" colors="grey: places_remain == 0; blue : places_remain >= 1">
|
2018-02-22 22:59:10 +01:00
|
|
|
<field name="member_id"/>
|
2018-02-20 17:44:40 +01:00
|
|
|
<field name="activity_id" readonly='1'/>
|
|
|
|
<field name="season_id" readonly='1'/>
|
2018-02-21 10:45:53 +01:00
|
|
|
<field name="create_date" readonly="1"/>
|
2018-02-23 00:22:34 +01:00
|
|
|
<field name='places_remain' />
|
2018-02-19 23:58:50 +01:00
|
|
|
</tree>
|
2018-02-19 14:03:13 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-02-21 10:45:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Action -->
|
|
|
|
<record id="golem_activity_queue_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">GOLEM Activity Queue List</field>
|
|
|
|
<field name="res_model">golem.activity.queue</field>
|
|
|
|
<field name="view_mode">tree,search</field>
|
|
|
|
<field name="context">{'search_default_season_default': True}</field>
|
|
|
|
</record>
|
|
|
|
<!-- Menu -->
|
|
|
|
<menuitem id="golem_activity_queue_menu" name="Activity queue"
|
|
|
|
parent="golem_activity.golem_activity_menu"
|
|
|
|
action="golem_activity_queue_action"
|
|
|
|
sequence="20" />
|
2018-02-16 00:27:35 +01:00
|
|
|
</data>
|
|
|
|
</odoo>
|