Base for Gantt view

by
Odoo

15.17

v 14.0 Third Party 9
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Project (project)
Discuss (mail)
Lines of code 6659
Technical Name web_base_gantt_view
LicenseSee License tab
Websitehttps://www.cfis.store
Versions 17.0 15.0 13.0 12.0 16.0 14.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Project (project)
Discuss (mail)
Lines of code 6659
Technical Name web_base_gantt_view
LicenseSee License tab
Websitehttps://www.cfis.store
Versions 17.0 15.0 13.0 12.0 16.0 14.0

Base for Gantt view

This module provides the foundation for a gantt chart and was created for the Odoo community edition. This module has a project Gantt view.

Installation

- Copy web_project_gantt module to addons folder

- Install the module normally like other modules

Features


  • Task Drag and Drop
  • Task Color

1. Configuration

1. Add Start Date, End Date and Color fields to themodel. (Mandatory fields are Stat Date, End Date and Color Field)


                    
                        from odoo import api, fields, models, _
                        
class ViewGanttProjectTak(models.Model): _inherit = 'project.task'
date_from = fields.Datetime(string='Planned start', index=True, copy=False) date_to = fields.Datetime(string='Planned stop', index=True, copy=False) color = fields.Integer('Task color', default=4)
@api.onchange('date_to') def onchange_gantt_stop_date(self): if self.date_from and self.date_to and self.date_to < self.date_from: self.date_to = self.date_from

2. Add a new view for gantt view.


                                           
                        <record id="view_task_gantt" model="ir.ui.view">
                            <field name="name">project.task.gantt</field>
                            <field name="model">project.task</field>
                            <field eval="0" name="priority">
                            <field name="arch" type="xml"/>
                                <ganttview 
                                    start_date="date_from" 
                                    stop_date="date_to"                             
                                >
                                </ganttview>
                            </field>
                        </record>
                    
                

3. Add new fields to the Form View.


                    
                        <record id="view_task_form2_inherit" model="ir.ui.view">
                            <field name="name">project.task.form</field>
                            <field name="model">project.task</field>
                            <field name="inherit_id" ref="project.view_task_form2"/>
                            <field eval="0" name="priority"/>
                            <field name="arch" type="xml">
                                <field name="partner_id" position="before">
                                    <field name="date_from"/>
                                    <field name="date_to"/>                
                                    <field name="color" widget="color_picker"/>
                                </field>
                            </field>
                        </record>
                    
                

4. Add action to the Gantt View.


                    
                        <record id="project.action_view_all_task" model="ir.actions.act_window"/>
                            <field name="view_mode"/>tree,kanban,form,calendar,pivot,graph,activity,ganttview</field/>
                        </record/>
                    
                

Gantt View

Help and Support

Email Contact Us Request Customization

Base for Gantt view

  • This module provides the foundation for a gantt chart and was created for the Odoo community edition. This module has a project Gantt view.

Installation

  • Copy web_base_gantt_view module to addons folder
  • Install the module normally like other modules.
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.