-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1849674
commit ebe8f77
Showing
6 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Henrik Norlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
resource_booking_timeline/views/resource_booking_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |