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;">
|
|
|
|
<field name="image_medium" widget="image"
|
|
|
|
class="oe_avatar oe_left"/>
|
|
|
|
<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" />
|
|
|
|
</group>
|
|
|
|
<group string="Details" col="4">
|
|
|
|
<group colspan="2">
|
|
|
|
<field name="default_code" />
|
2016-06-27 17:53:10 +02:00
|
|
|
<field name="categ_id" />
|
2016-06-27 12:38:08 +02:00
|
|
|
<field name="list_price" />
|
|
|
|
</group>
|
|
|
|
<group colspan="2">
|
2016-06-27 21:11:03 +02:00
|
|
|
<field name="animator_id" />
|
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 colspan="4">
|
|
|
|
<field name="description" placeholder="describe the activity characteristics..."/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page name="activity_details" string="Others">
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="type" />
|
|
|
|
<field name="active" />
|
|
|
|
</group>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<!-- 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-06-27 17:53:10 +02:00
|
|
|
<field name="activity_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)]" />
|
2016-06-27 22:29:42 +02:00
|
|
|
<group string="Group By">
|
|
|
|
<filter name="group_category" string="By category"
|
|
|
|
context="{'group_by': 'categ_id'}"/>
|
|
|
|
</group>
|
2016-06-27 12:38:08 +02:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2016-06-27 17:53:10 +02:00
|
|
|
<record id="action" model="ir.actions.act_window">
|
|
|
|
<field name="name">GOLEM Activities</field>
|
|
|
|
<field name="res_model">golem.activity</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
2016-06-27 22:29:42 +02:00
|
|
|
<field name="view_id" ref="product.product_template_kanban_view"/>
|
2016-06-27 17:53:10 +02:00
|
|
|
<field name="context"
|
|
|
|
eval="{'search_default_season_default': True, 'default_categ_id': ref('golem_activity.golem_product_category_all_activities')}" />
|
|
|
|
</record>
|
|
|
|
<record id="category_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Activities Categories</field>
|
|
|
|
<field name="res_model">product.category</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="product.product_category_list_view" />
|
|
|
|
</record>
|
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" />
|
2016-06-27 22:29:42 +02:00
|
|
|
<menuitem id="activity_categ" name="Categories"
|
2016-06-27 17:53:10 +02:00
|
|
|
parent="activity_menu" sequence="10"
|
|
|
|
action="category_action" />
|
2016-06-27 12:38:08 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|