Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 5295 |
Technical Name |
custom_gantt_view |
License | OPL-1 |
Website | https://www.cybrosys.com |
Versions | 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
Key Highlights
Drag and drop records.
4 modes of view.
Zoom in and Zoom out
Move left and move right
Are you ready to make your business more
organized?
Improve now!

Gantt View.

How to add a gantt view for a model?
In this documentation we are adding the gantt view for project_task model.
- Step 1: Install the app 'custom_gantt_view'.
-
Step 2: Navigate to the Settings
module and activate the developer
mode.
-
Step 3: Navigate to the Project
module and open 'All Task' view.
-
Step 4: Click on the marked button
as shown in the below image and then
click 'Action' menu.
-
Step 5: Then scroll down and click
on the Add a line button
-
Step 6: A wizard will be opened and
add 'Gantt' inside the field 'View
type' then in the field 'View'
define a name for your view. Here I
have named the view as
'project_task_gantt_view', then
click on the create and edit button
as shown in the below image.
-
Step 7: A wizard will be opened and
add 'Gantt' inside the field 'View
type' then 'Task' in the field
'Model of the view'. Then in the
Architecture section add the below
code as show in below image. Then
save and close, again save and
close.
<gantt string="Project Tasks" date_start="date_assign" date_end="date_deadline" group_by="project_id">
<field name="id"/>
</gantt>Note that 'date_assign' and 'date_deadline' are the fields used for the gantt view's start and end date. These fields are mandatory filed. If you have start date and end fields in another name you need to change the code like date_start="Start date field" date_end="End date field".
-
Step 8: Add gantt in the field 'View
mode' as shown in the below image.
-
Step 9: Save the form and click on
'All Tasks' menu, and click on the
Gantt icon as shown in the below
image.
-
Step 10: Test the view.
Drag and drop records.
4 modes of view.
Zoom in and Zoom out.
Move left and move right.
Yes you can. but you need start and end date fields in the model.
Latest Release 18.0.1.0.0
8th october, 2024- Initial Commit
Related Modules
Our Services
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Question
Does this support the Attendance view?
We're moving from Odoo online to the Community On-Prem edition, and our Operations team wants a Gantt view for Attendance.
Re: Question
Yes, the Attendance view can be displayed in a Gantt format using the custom_gantt_view module in Odoo Community Edition. You'll have to define the view