2016-06-27 12:38:08 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
2018-07-17 09:33:56 +02:00
|
|
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
2020-05-28 09:22:28 +02:00
|
|
|
Copyright 2020 Youssef El Ouahby <youssef@yaltik.com>
|
2016-06-27 12:38:08 +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-05-01 17:49:21 +02:00
|
|
|
<odoo>
|
2016-06-27 12:38:08 +02:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Forms -->
|
2017-05-01 17:49:21 +02:00
|
|
|
<record id="golem_activity_form" model="ir.ui.view">
|
2016-06-27 12:38:08 +02:00
|
|
|
<field name="name">GOLEM Activity Form</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
2016-10-16 18:21:41 +02:00
|
|
|
<header />
|
2016-06-27 12:38:08 +02:00
|
|
|
<sheet>
|
2016-10-16 18:21:41 +02:00
|
|
|
<div class="oe_clear oe_right oe_button_box"
|
|
|
|
style="width: 300px;"
|
2016-10-10 16:25:55 +02:00
|
|
|
name="buttons"></div>
|
|
|
|
<div class="oe_left" style="width: 500px;">
|
|
|
|
<field name="image" 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" required="True" class="oe_inline"/></h1>
|
2016-06-27 12:38:08 +02:00
|
|
|
</div>
|
2016-10-10 16:25:55 +02:00
|
|
|
</div>
|
|
|
|
<group>
|
2016-06-27 12:38:08 +02:00
|
|
|
<group>
|
2018-08-27 12:24:00 +02:00
|
|
|
<field name="season_id" required="True"
|
|
|
|
options="{'no_create': True}" />
|
2016-06-27 21:11:03 +02:00
|
|
|
<field name="animator_id" />
|
2018-07-17 09:33:56 +02:00
|
|
|
<field name="type_id" required="True"
|
|
|
|
options="{'no_create': True}" />
|
|
|
|
<field name="audience_id" />
|
2016-07-11 12:19:56 +02:00
|
|
|
</group>
|
|
|
|
<group>
|
2018-07-17 10:45:04 +02:00
|
|
|
<field name="categ_id" required="True"
|
|
|
|
help="Select category for the current activity" />
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="default_code" />
|
|
|
|
<field name="list_price" />
|
2016-06-27 12:38:08 +02:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<notebook>
|
2017-05-01 23:21:32 +02:00
|
|
|
<page name="session" string="Session">
|
2016-10-10 16:25:55 +02:00
|
|
|
<group>
|
2016-10-10 17:51:42 +02:00
|
|
|
<group name="dates">
|
|
|
|
<field name="is_recurrent" />
|
|
|
|
<field name="weekday"
|
|
|
|
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
|
|
|
<field name="hour_start" widget="float_time"
|
|
|
|
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
2016-10-26 09:39:59 +02:00
|
|
|
<field name="hour_stop" widget="float_time"
|
2016-10-10 17:51:42 +02:00
|
|
|
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
2018-02-01 16:00:42 +01:00
|
|
|
|
2018-02-01 17:05:10 +01:00
|
|
|
<field name="is_fullseason" readonly="False"
|
2018-02-01 16:00:42 +01:00
|
|
|
attrs="{'invisible':[('is_recurrent', '=', False)]}" />
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="date_start"
|
2018-02-01 16:00:42 +01:00
|
|
|
attrs="{'invisible':[('is_recurrent', '=', True),
|
2018-02-01 17:16:19 +01:00
|
|
|
('is_fullseason', '=', True)]}" />
|
2016-10-10 17:51:42 +02:00
|
|
|
<field name="date_stop"
|
2018-02-01 16:00:42 +01:00
|
|
|
attrs="{'invisible':[('is_recurrent', '=', True),
|
2018-02-01 17:16:19 +01:00
|
|
|
('is_fullseason', '=', True)]}" />
|
2018-07-17 09:33:56 +02:00
|
|
|
<field name="location" />
|
2016-10-10 17:51:42 +02:00
|
|
|
</group>
|
|
|
|
<group name="places">
|
|
|
|
</group>
|
2016-10-10 16:25:55 +02:00
|
|
|
</group>
|
|
|
|
</page>
|
2017-06-14 08:16:17 +02:00
|
|
|
<page string="Invoicing" name="invoicing"
|
|
|
|
groups="account.group_account_invoice">
|
|
|
|
<group name="properties">
|
|
|
|
<field name="property_account_income_id"
|
|
|
|
domain="[('internal_type','=','other'),('deprecated','=',False)]"
|
|
|
|
groups="account.group_account_user"/>
|
|
|
|
<field name="taxes_id" widget="many2many_tags"/>
|
|
|
|
<field name="property_account_expense_id"
|
|
|
|
domain="[('internal_type','=','other'),('deprecated','=',False)]"
|
|
|
|
groups="account.group_account_user"/>
|
|
|
|
<field name="supplier_taxes_id" widget="many2many_tags"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
2016-10-10 18:19:24 +02:00
|
|
|
<page name="activity_others" string="Others">
|
2016-06-27 12:38:08 +02:00
|
|
|
<group>
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="description"
|
|
|
|
placeholder="describe the activity characteristics..." />
|
|
|
|
<field name="active" />
|
2016-06-27 12:38:08 +02:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="message_follower_ids" widget="mail_followers" />
|
|
|
|
<field name="message_ids" widget="mail_thread" />
|
2016-06-27 12:38:08 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-07-05 15:39:15 +02:00
|
|
|
<!-- Trees -->
|
2017-05-01 17:49:21 +02:00
|
|
|
<record model="ir.ui.view" id="golem_activity_tree">
|
2016-07-05 15:39:15 +02:00
|
|
|
<field name="name">GOLEM Activity Tree/List</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
2016-10-10 16:25:55 +02:00
|
|
|
<tree>
|
|
|
|
<field name="is_recurrent" invisible="True" />
|
2016-07-11 07:27:06 +02:00
|
|
|
<field name="season_id" />
|
2017-06-05 11:22:34 +02:00
|
|
|
<field name="type_id" />
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="full_name" />
|
2016-07-05 15:39:15 +02:00
|
|
|
<field name="animator_id" />
|
2018-08-09 15:47:57 +02:00
|
|
|
<field name="weekday" string="Day" />
|
2018-02-01 16:00:42 +01:00
|
|
|
<field name="date_start" string="Date" />
|
2018-08-09 15:47:57 +02:00
|
|
|
<field name="hour_start_display" string="Hour" widget="float_time" />
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="list_price" sum="True" />
|
2016-07-05 15:39:15 +02:00
|
|
|
</tree>
|
|
|
|
</field>
|
2016-07-11 12:19:56 +02:00
|
|
|
</record>
|
2017-06-05 11:22:34 +02:00
|
|
|
<record model="ir.ui.view" id="golem_activity_type_tree">
|
|
|
|
<field name="name">GOLEM Activity Type Tree/List</field>
|
|
|
|
<field name="model">golem.activity.type</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="top">
|
|
|
|
<field name="name" />
|
|
|
|
<field name="is_recurrent" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-07-17 09:33:56 +02:00
|
|
|
<record model="ir.ui.view" id="golem_activity_audience_tree">
|
|
|
|
<field name="name">GOLEM Activity Audience Tree/List</field>
|
|
|
|
<field name="model">golem.activity.audience</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="top">
|
|
|
|
<field name="name" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-07-05 15:39:15 +02:00
|
|
|
|
2016-10-10 16:25:55 +02:00
|
|
|
<!-- Calendars -->
|
2017-05-01 17:49:21 +02:00
|
|
|
<record id="golem_activity_calendar" model="ir.ui.view">
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="name">Activity calendar view</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar date_start="date_start" date_stop="date_stop"
|
|
|
|
color="categ_id" display="[name]">
|
|
|
|
<field name="name" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-06-27 12:38:08 +02:00
|
|
|
<!-- Searches -->
|
2017-05-01 17:49:21 +02:00
|
|
|
<record id="golem_activity_search" model="ir.ui.view">
|
2016-06-27 12:38:08 +02:00
|
|
|
<field name="name">GOLEM Activity Filters</field>
|
|
|
|
<field name="model">golem.activity</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
2016-10-10 16:25:55 +02:00
|
|
|
<field name="full_name" />
|
2017-06-05 11:22:34 +02:00
|
|
|
<field name="animator_id" />
|
|
|
|
<field name="type_id" />
|
|
|
|
<field name="categ_id" />
|
|
|
|
<field name="season_id" />
|
2016-06-27 12:38:08 +02:00
|
|
|
<filter name="season_default" string="Default season"
|
2018-07-20 10:09:24 +02:00
|
|
|
domain="[('is_default', '=', True)]" />
|
2016-10-10 16:25:55 +02:00
|
|
|
<group string="Group By">
|
2017-06-05 11:22:34 +02:00
|
|
|
<filter name="group_type_id" string="By type"
|
|
|
|
context="{'group_by': 'type_id'}" />
|
2016-10-10 16:25:55 +02:00
|
|
|
<filter name="group_category" string="By category"
|
|
|
|
context="{'group_by': 'categ_id'}"/>
|
|
|
|
<filter name="group_weekday" string="By weekday"
|
|
|
|
context="{'group_by': 'weekday'}" />
|
|
|
|
<filter name="group_animator" string="By animator"
|
|
|
|
context="{'group_by': 'animator_id'}" />
|
|
|
|
</group>
|
2016-06-27 12:38:08 +02:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
2017-05-01 17:49:21 +02:00
|
|
|
<act_window id="golem_activity_action" name="GOLEM Activities"
|
2020-05-28 09:22:28 +02:00
|
|
|
res_model="golem.activity" view_mode="tree,form,calendar"
|
2020-05-20 01:23:00 +02:00
|
|
|
context="{'search_default_season_default': 1}"/>
|
2017-06-05 11:22:34 +02:00
|
|
|
<act_window id="golem_activity_type_action" name="GOLEM Activity Types"
|
|
|
|
res_model="golem.activity.type" view_mode="tree" />
|
2018-07-17 09:33:56 +02:00
|
|
|
<act_window id="golem_activity_audience_action" name="GOLEM Activity Audiences"
|
|
|
|
res_model="golem.activity.audience" view_mode="tree" />
|
2017-05-01 17:49:21 +02:00
|
|
|
<record id="product_category_action" model="ir.actions.act_window">
|
2016-10-10 16:25:55 +02:00
|
|
|
<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 -->
|
2017-06-05 17:30:30 +02:00
|
|
|
<menuitem id="golem_activity_menu" name="Activities" sequence="30"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
2017-06-05 17:30:30 +02:00
|
|
|
web_icon="golem_activity,static/description/icon.png" />
|
|
|
|
<menuitem id="golem_activity_menu_list" name="Activities"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
2017-06-05 17:30:30 +02:00
|
|
|
parent="golem_activity_menu" sequence="1" action="golem_activity_action" />
|
|
|
|
<menuitem id="golem_activity_menu_configuration" name="Configuration"
|
|
|
|
parent="golem_activity_menu" sequence="90"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
2017-06-05 17:30:30 +02:00
|
|
|
<menuitem id="golem_activity_type_menu_list" name="Activity Types"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
2017-06-05 17:30:30 +02:00
|
|
|
parent="golem_activity_menu_configuration" sequence="5"
|
|
|
|
action="golem_activity_type_action" />
|
2018-07-17 09:33:56 +02:00
|
|
|
<menuitem id="golem_activity_audience_menu_list" name="Activity Audiences"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
2018-07-17 09:33:56 +02:00
|
|
|
parent="golem_activity_menu_configuration" sequence="7"
|
|
|
|
action="golem_activity_audience_action" />
|
2017-05-01 17:49:21 +02:00
|
|
|
<menuitem id="product_category_menu" name="Categories"
|
2017-06-05 17:30:30 +02:00
|
|
|
parent="golem_activity_menu_configuration" sequence="10"
|
2020-05-21 02:56:12 +02:00
|
|
|
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
2017-05-01 17:49:21 +02:00
|
|
|
action="product_category_action" />
|
2016-06-27 12:38:08 +02:00
|
|
|
|
|
|
|
</data>
|
2017-05-01 17:49:21 +02:00
|
|
|
</odoo>
|