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 81099bd
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 0 deletions.
Empty file.
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.
30 changes: 30 additions & 0 deletions resource_booking_timeline/views/resource_booking_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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 81099bd

Please sign in to comment.