2018-02-07 01:44:48 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
2018-02-18 07:27:32 +01:00
|
|
|
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
|
2018-02-08 00:58:23 +01:00
|
|
|
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
|
2018-02-07 01:44:48 +01: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/>.
|
|
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
<data>
|
2018-02-08 00:58:23 +01:00
|
|
|
<!-- Remplissage du modele golem.weekday par les jours de la semaine -->
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="6">
|
|
|
|
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Sunday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">6</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="0">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Monday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">0</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="1">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Tuesday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">1</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="2">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">wednesday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">2</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="3">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Thursday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">3</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="4">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Friday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">4</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-12 16:05:52 +01:00
|
|
|
<record model="golem.weekday" id="5">
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="name">Saturday</field>
|
2018-02-12 16:05:52 +01:00
|
|
|
<field name="id_day">5</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</record>
|
2018-02-08 00:58:23 +01:00
|
|
|
|
|
|
|
<!--formulaire de recherche et filtrage du modèle golem.resources-->
|
|
|
|
|
2018-02-07 01:44:48 +01:00
|
|
|
<record model="ir.ui.view" id="resource_search_view">
|
|
|
|
<field name="name">resource.search</field>
|
|
|
|
<field name="model">golem.resources</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Resource Search">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="resource_type"/>
|
|
|
|
<field name="resource_responsible"/>
|
|
|
|
<field name="article_link"/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-02-08 00:58:23 +01:00
|
|
|
|
|
|
|
<!--liste d'affichage du modèle golem.resources-->
|
2018-02-07 01:44:48 +01:00
|
|
|
<record model="ir.ui.view" id="resource_tree_view">
|
|
|
|
<field name="name">resource.tree</field>
|
|
|
|
<field name="model">golem.resources</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Resource Form">
|
|
|
|
<field name="name"/>
|
2018-02-13 15:04:55 +01:00
|
|
|
<field name="validation_required"/>
|
2018-02-07 01:44:48 +01:00
|
|
|
<field name="resource_type"/>
|
|
|
|
<field name="resource_responsible"/>
|
|
|
|
<field name="article_link"/>
|
|
|
|
<field name="start_of_availability_date"/>
|
|
|
|
<field name="end_of_availability_date"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-02-08 00:58:23 +01:00
|
|
|
|
|
|
|
<!--formulaire du modèle golem.resources-->
|
2018-02-07 01:44:48 +01:00
|
|
|
<record model="ir.ui.view" id="resource_form_view">
|
|
|
|
<field name="name">resource.form</field>
|
|
|
|
<field name="model">golem.resources</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Resource Form">
|
|
|
|
<sheet>
|
2018-02-08 12:02:46 +01:00
|
|
|
<div class="oe_button_box" name="button_box" groups="base.group_user">
|
|
|
|
<button class="oe_stat_button" icon="fa-archive" name="active_change" type="object"
|
|
|
|
align="right">
|
|
|
|
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-02-07 01:44:48 +01:00
|
|
|
<group colspan="2">
|
|
|
|
<group colspan="4" col="4">
|
2018-02-08 00:58:23 +01:00
|
|
|
<field name="name"/>
|
2018-02-13 15:04:55 +01:00
|
|
|
<field name="validation_required"/>
|
2018-02-08 00:58:23 +01:00
|
|
|
<field name="resource_type"/>
|
|
|
|
<field name="resource_responsible"/>
|
|
|
|
<field name="article_link"/>
|
2018-02-07 01:44:48 +01:00
|
|
|
</group>
|
2018-02-08 23:21:33 +01:00
|
|
|
<field name="id" invisible="1"/>
|
2018-02-07 01:44:48 +01:00
|
|
|
<group colspan="3">
|
2018-02-08 00:58:23 +01:00
|
|
|
<separator string="Availibility configuration" colspan="3"/>
|
|
|
|
<field name="start_of_availability_date"/>
|
|
|
|
<field name="end_of_availability_date"/>
|
2018-02-08 23:21:33 +01:00
|
|
|
</group>
|
|
|
|
<label string="Please save the resource before fixing the timetable availibility" attrs="{'invisible': [('id', '!=', False)]}"/>
|
|
|
|
<group colspan="3">
|
|
|
|
<field name="timetable" context="{'default_resource_id': active_id}" attrs="{'readonly': [('id', '=', False)]}">
|
|
|
|
<tree editable="bottom" >
|
|
|
|
<field name="resource_id" invisible="1"/>
|
2018-02-08 00:58:23 +01:00
|
|
|
<field name="name" />
|
|
|
|
<field name="start_time" />
|
|
|
|
<field name="end_time" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
2018-02-07 01:44:48 +01:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-02-08 00:58:23 +01:00
|
|
|
<!--action du sous menu Resources-->
|
2018-02-07 01:44:48 +01:00
|
|
|
<record model="ir.actions.act_window" id="action_resources">
|
|
|
|
<field name="name">Resources</field>
|
|
|
|
<field name="res_model">golem.resources</field>
|
|
|
|
<field name="view_mode">tree,form,search</field>
|
|
|
|
</record>
|
2018-02-08 00:58:23 +01:00
|
|
|
|
2018-02-08 23:21:33 +01:00
|
|
|
|
|
|
|
<!--liste d'affichage du modèle golem.resources-->
|
|
|
|
<record model="ir.ui.view" id="resourcetype_tree_view">
|
|
|
|
<field name="name">resourcetype.tree</field>
|
|
|
|
<field name="model">golem.resourcetype</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="bottom" string="Resource Type Form">
|
|
|
|
<field name="name"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!--action du sous menu configuration-->
|
|
|
|
<record model="ir.actions.act_window" id="action_configuration">
|
|
|
|
<field name="name">Resources Type</field>
|
|
|
|
<field name="res_model">golem.resourcetype</field>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
</record>
|
2018-02-08 00:58:23 +01:00
|
|
|
<!--menu principale et sous menu-->
|
2018-02-18 07:59:24 +01:00
|
|
|
<menuitem id="resources_menu" name="Resources"
|
|
|
|
sequence="55" groups="golem_base.group_golem_user"
|
|
|
|
web_icon="golem_ressources,static/description/icon.png" />
|
|
|
|
<menuitem id="resources_list_menu" name="Resources" parent="resources_menu"
|
|
|
|
action="action_resources" sequence="10" />
|
|
|
|
<menuitem id="resource_configuration_menu" name="Configuration"
|
|
|
|
parent="resources_menu" groups="golem_base.group_golem_manager"
|
|
|
|
action="action_configuration" sequence="90" />
|
|
|
|
<menuitem id="resource_cofiguration_type_menu" name="Resource Types"
|
|
|
|
parent="resource_configuration_menu"
|
|
|
|
action="action_configuration" sequence="10" />
|
2018-02-07 01:44:48 +01:00
|
|
|
</data>
|
|
|
|
</odoo>
|