Skip to content

Commit

Permalink
[ADD] resource_booking_timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
norlinhenrik committed Feb 2, 2025
1 parent 1849674 commit ebe8f77
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
Empty file.
21 changes: 21 additions & 0 deletions resource_booking_timeline/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2023 Henrik Norlin
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Resource Booking Timeline",
"summary": "",
"author": "Henrik Norlin, Odoo Community Association (OCA)",
"category": "Appointments",
"data": [
"views/resource_booking_views.xml",
],
"depends": [
"resource_booking",
"web_timeline",
],
"development_status": "Alpha",
"license": "AGPL-3",
"maintainers": ["norlinhenrik"],
"version": "16.0.1.0.0",
"website": "https://github.com/OCA/calendar",
}
1 change: 1 addition & 0 deletions resource_booking_timeline/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Henrik Norlin
1 change: 1 addition & 0 deletions resource_booking_timeline/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module shows resource bookings in timeline view.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions resource_booking_timeline/views/resource_booking_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<data>
<record id="resource_booking_view_timeline" model="ir.ui.view">
<field name="model">resource.booking</field>
<field name="type">timeline</field>
<field name="arch" type="xml">
<timeline
date_start="start"
date_delay="duration"
date_stop="stop"
string="Bookings"
default_group_by="combination_id"
zoomKey="ctrlKey"
>
<field name="combination_id" />
<templates>
<div t-name="timeline-item">
<div t-esc="record.display_name" />
</div>
</templates>
</timeline>
</field>
</record>
<record id="resource_booking.resource_booking_action" model="ir.actions.act_window">
<field name="view_mode">timeline,calendar,tree,form</field>
<field name="context">{'search_default_is_mine': 1, 'default_combination_auto_assign': 0}</field>
</record>
</data>

0 comments on commit ebe8f77

Please sign in to comment.