Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0][ADD] project_timeline_critical_path: Highlight critical path in task timeline view #421

Merged
merged 2 commits into from Sep 18, 2018

Conversation

tarteo
Copy link
Member

@tarteo tarteo commented Aug 23, 2018

Calculates the critical path using a simple library (criticalpath) and highlight it in the timeline view.

Like this:

image
The red line is the critical path.

You can change the way the calculation is done to lead time or planned hours.

@AaronHForgeFlow
Copy link
Contributor

Nice feature!

Copy link

@elicoidal elicoidal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

'name': 'Test1'
})
project2 = project_obj.create({
'name': 'Test2'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing because of the way module project_key generates keys for a project.
The generated keys for 'Test1' and 'Test2' are both equal to 'TES', and that is causing the issue because of the uniqueness constraint on the keys.

I you give a different name to this project, so for example instead of 'Test2' you name it something like 'Other Test', the tests will pass.

# Copyright 2018 Onestein
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, fields, api
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Copyright 2018 Onestein
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, api
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sort imports alphabetically


<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res_config_settings_view_form</field>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove <field name="name" ... since the system will generate the name automatically

@astirpe
Copy link
Member

astirpe commented Aug 24, 2018

@OCA/community-maintainers could you please take a look at the pylint failure below?

Yesterday it was working fine, today not anymore. It seems to me a regression.

************* Module project_timeline_critical_path.__manifest__
project_timeline_critical_path/__manifest__.py:4: [C8101(manifest-required-author), ] One of the following authors must be present in manifest: '"Odoo Community Association (OCA)"'

@pedrobaeza
Copy link
Member

Yes, it's because of this PR: OCA/pylint-odoo#210 (comment)

@pedrobaeza
Copy link
Member

Fixed in OCA/pylint-odoo@f092c23. I have relaunched a build

@pedrobaeza
Copy link
Member

I'm afraid it's not the good one. I continue checking.

@pedrobaeza
Copy link
Member

This is the good patch: OCA/maintainer-quality-tools@c80d1d0

[FIX] Flake

[ADD] Roadmap

[FIX] ImportError

[ADD] criticalpath to travis

[FIX] Tests and small issues
@tarteo tarteo force-pushed the 11-project-timeline-critical-path branch from 71813c9 to feb44e9 Compare August 28, 2018 08:24
@tarteo
Copy link
Member Author

tarteo commented Sep 5, 2018

Can this be merged? Or does it needs 3 reviews?

Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Functional test

@astirpe
Copy link
Member

astirpe commented Sep 18, 2018

I think this one can be merged ...

@pedrobaeza pedrobaeza merged commit a3d45ea into OCA:11.0 Sep 18, 2018
anandkansagra pushed a commit to anandkansagra/project that referenced this pull request May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants