Web Gantt chart for Odoo, based on Twproject
License:
- This module is base on open source at Open Lab, Florence, Italy - https://gantt.twproject.com
- This library is released under MIT license
Support:
- Model with fields: start date, end date, progress, state or stage
Note:
- With stage: stage must be defined color: color = fields.Char('Color')
Example:
- Stage: <viin_gantt
- manager="manager_id"
members="user_id"
date_start="date_start"
date_stop="date_end"
progress="progress"
stage_domain="[('project_ids', '=', project_id)]"
stage_by="project_id"
depends="depend_ids"
status="stage"
status_readonly="0"
holiday="0"
string="Tasks"
default_group_by="project_id"
filter_stage_condition="['project_id', 'IN', 'project_ids']" />
- State: <viin_gantt
- manager="manager_id"
members="user_id"
date_start="date_start"
date_stop="date_end"
progress="progress"
status_readonly="0"
depends="depend_ids"
holiday="0"
status="state"
colors="['#ffffff', '#3BBF67', '#0099FF', '#fbb11e']"
string="Tasks"
default_group_by="project_id"
fetch_color="get_stages"/>
Options:
- status: state or stage
- status_readonly: 0 or 1, Can't change state or stage in gantt view, default: 0
- holiday: 0 or 1, can't assign start or end date at holiday, default: 0
- colors: list colors of state
- stage_domain & stage_by: Apply with stage as Project of Odoo 12
- depends: m2m fields, dependences of task
- index_color_field: field to calculate color of status
- get_stages: function to get all status
- field_status: field to use to update the status of task
- System will detect fields if missing attributes: status, depends, manager, members
- default_closed: [ 'done', 'cancel', 'cancelled', 'close', 'closed' ], with less view, skip records in list states
- fetch_color: function to fetch stage
- filter_stage_condition: condition to filter stage for data (left side is name of field in data, middle is operator
right side is name of field in stage)
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.
Thông báo bản quyền và chấp thuận nêu trên buộc phải được bao gồm trong tất cả các bản sao hoặc các phần quan trọng của Phần mềm.
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.