A Complete Guide to Using Gantt View in Odoo18
Odoo is a powerful platform that offers various view types like tree, form, kanban, calendar, and graph. Each of these views is used to meet specific requirements, helping users visualize data effectively and efficiently. Gantt view in Odoo18, which is a powerful tool designed for planning, scheduling, and managing timelines efficiently.
What is Gantt View in Odoo18
The Gantt view is a horizontal bar chart visualization, typically used to represent schedules, planning and timelines. It allows businesses to track tasks, schedules, and other time-sensitive activities. This feature is present in Odoo’s Enterprise edition. It relies on the web_gantt module, which can be installed via the Apps menu.
Features
- Interactive Timeline This allows users to adjust start and end dates directly on the chart.
- Grouping and Filtering This organize data by categories or filters for better clarity.
- Multiple Time Scales Time scales can be switched between day, week, month, and year views to see a detailed or broader picture.
- Progress Tracking Task completion tracked with progress indicators.
- Customizable Colors Differentiate tasks or categories using colors can be seen
Gantt view lets users optimize resource allocation and streamline workflows in as well as giving them visibility into schedules.
Key Attributes for Creating a Gantt View
When creating a Gantt view, you’ll use the following attributes:
- String: String is considered as the name of the Gantt view.
- Date Start / Date Stop: This specifies the timeline of each task.
- Default Group By: This groups the data by a specific field, such as employees or projects.
- Progress: Progress indicates the percentage of task completion.
- Default Scale: It defines the initial time scale (day, week, month).
- Scales: Scales are lists available time scales for the view.
- Precision: It controls how time intervals are displayed (hour, minute, etc.).
- Color: Visual distinction to bars based on criteria is added
By using these attributes, we can create a highly customized and functional Gantt view that suits your business needs.
Let’s see an example that utilizes all the Gantt view attributes.
Process 1: Define the Model
First, define a model in Python that includes fields for start and stop dates, grouping criteria, and progress tracking as shown below.
This model holds fields for task name, start and end dates, progress, assigned user, and project association. This also features a color field for customizing bar colors.
Process 2: Define the Gantt View in XML
The tag is the core element for defining this view as shown below.
Key Features
- Date Start/Stop: These fields determine the timeline of tasks.
- Default Group By: Tasks can be grouped by project_id, allowing you to see tasks per project.
- Progress Tracking: The progress field shows the task completion as a percentage.
- Default Scale and Scales: Users can differentiate between day, week, month, and year views.
- Precision: Time are displayed in hours for detailed tracking.
- Color: Different colors can be represented tasks based on the color field.
After implementing the above configurations, please go to the gantt view menu in Odoo to access the Gantt view. These tasks will appear as horizontal bars with their start and end dates plotted along the timeline. You can:
You can modify the schedules by dragging and dropping tasks.
To see when tasks are completed, use the progress bar.
Use project, user, or additional filters to filter tasks.
So try these and feel this gantt view. if you have any thoughts contact us.
"Unlock the Full Potential of Your Business with Odoo ERP!"
"Get a Cost Estimate for Your ERP Project, Absolutely FREE!"
Get a Free Quote