2016-06-27 12:38:08 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2016 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/>.
|
|
|
|
-->
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Forms -->
|
|
|
|
<record id="view_form" model="ir.ui.view">
|
|
|
|
<field name="name">GOLEM Activity Form</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
2016-06-27 17:53:10 +02:00
|
|
|
<div class="oe_right oe_button_box" style="width: 300px;"
|
|
|
|
name="buttons"></div>
|
2016-06-27 12:38:08 +02:00
|
|
|
<div class="oe_left" style="width: 500px;">
|
2016-07-11 12:19:56 +02:00
|
|
|
<field name="image" widget="image" class="oe_avatar oe_left"/>
|
2016-06-27 12:38:08 +02:00
|
|
|
<div class="oe_title" style="width: 390px;">
|
|
|
|
<label class="oe_edit_only" for="name" string="Activity Name"/>
|
|
|
|
<h1><field name="name" class="oe_inline"/></h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<field name="season_id" />
|
2016-07-11 17:01:06 +02:00
|
|
|
<field name="default_code" />
|
2016-06-27 12:38:08 +02:00
|
|
|
</group>
|
2016-07-11 12:19:56 +02:00
|
|
|
<group string="Details">
|
|
|
|
<group>
|
2016-06-27 17:53:10 +02:00
|
|
|
<field name="categ_id" />
|
2016-06-27 21:11:03 +02:00
|
|
|
<field name="animator_id" />
|
2016-07-11 12:19:56 +02:00
|
|
|
</group>
|
|
|
|
<group>
|
2016-06-27 12:38:08 +02:00
|
|
|
<field name="date_start" />
|
|
|
|
<field name="date_end" />
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<notebook>
|
|
|
|
<page name="activity_info" string="Information">
|
|
|
|
<group>
|
2016-07-11 12:19:56 +02:00
|
|
|
<field name="note"
|
|
|
|
placeholder="describe the activity characteristics..."/>
|
2016-06-27 12:38:08 +02:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers" />
|
|
|
|
<field name="message_ids" widget="mail_thread" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-07-05 15:39:15 +02:00
|
|
|
<!-- Trees -->
|
|
|
|
<record model="ir.ui.view" id="view_tree">
|
|
|
|
<field name="name">GOLEM Activity Tree/List</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="GOLEM Activities">
|
2016-07-11 07:27:06 +02:00
|
|
|
<field name="season_id" />
|
2016-07-05 15:39:15 +02:00
|
|
|
<field name="name" />
|
|
|
|
<field name="animator_id" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
2016-07-11 12:19:56 +02:00
|
|
|
</record>
|
2016-07-05 15:39:15 +02:00
|
|
|
|
2016-06-27 12:38:08 +02:00
|
|
|
<!-- Searches -->
|
|
|
|
<record id="view_filter" model="ir.ui.view">
|
|
|
|
<field name="name">GOLEM Activity Filters</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
2016-07-11 12:19:56 +02:00
|
|
|
<field name="name" />
|
2016-06-27 12:38:08 +02:00
|
|
|
<field name="season_id" widget="many2one" />
|
|
|
|
<filter name="season_default" string="Default season"
|
|
|
|
domain="[('is_current', '=', True)]" />
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2016-07-11 12:19:56 +02:00
|
|
|
<act_window id="action" name="GOLEM Activities" res_model="golem.activity"
|
|
|
|
context="{'search_default_season_default': True, 'default_categ_id': ref('golem_activity.golem_product_category_all_activities')}" />
|
2016-06-27 12:38:08 +02:00
|
|
|
|
|
|
|
<!-- Menus -->
|
|
|
|
<menuitem id="activity_menu" name="Activities"
|
|
|
|
parent="base.menu_association" sequence="5" />
|
|
|
|
<menuitem id="activity_list" name="List"
|
|
|
|
parent="activity_menu" sequence="0"
|
|
|
|
action="action" />
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|