-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
[8.0][WIP] Added Earned Value Management Report #107
[8.0][WIP] Added Earned Value Management Report #107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remarks.
Besides, to be tested.
tools.drop_view_if_exists(cr, | ||
'business_requirement_earned_value_report') | ||
cr.execute(""" | ||
CREATE VIEW business_requirement_earned_value_report AS ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a lot of div by zero potential issues in the current view.
@@ -181,7 +181,7 @@ def _compute_resource_task_total(self): | |||
br.mapped('deliverable_lines').mapped( | |||
'resource_ids').filtered( | |||
lambda r: r.resource_type == 'task').mapped( | |||
'price_total')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
irrelevant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't make this change in the PR.
@@ -0,0 +1,5 @@ | |||
# -*- coding: utf-8 -*- | |||
# © 2016 Elico Corp (www.elico-corp.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017 (everywhere)
@elicoidal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
<field name="view_id" ref="view_earned_value_graph"/> | ||
</record> | ||
|
||
<menuitem action="action_earned_value_report" id="menu_action_deliverable_report" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This report should only visible to the cost group
almost there! |
please check Travis and Runbot as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a check and amend if necessary
readonly=True) | ||
res_product = fields.Many2one('product.product', 'Res Product', | ||
readonly=True) | ||
hr_timesheet_product =\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sudhir-serpentcs layout is not ok.
as example do as here:
hr_timesheet_product = fields.Many2one(
'product.product',
'HR Timesheet Product',
...,)
And amend for the others fields as well
res.unit_price) as per_variances, | ||
pt.remaining_hours, | ||
(pt.effective_hours + pt.remaining_hours) as total_expected_time, | ||
CASE WHEN (pt.effective_hours + pt.remaining_hours) > 0 THEN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sudhir-serpentcs if
pt.effective_hours = 0
pt.remaining_hours = 2
condition (pt.effective_hours + pt.remaining_hours) > 0
is true then a division 0/2 on Postgress will cause error, don't you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@victormartinelicocorp
no if 0/2
condition should be (pt.remaining_hours) > 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please amend
@elicoidal @victormartinelicocorp |
</record> | ||
|
||
<menuitem action="action_earned_value_report" id="menu_action_deliverable_report" | ||
parent="base.menu_project_report" groups="business_requirement_deliverable_cost.group_business_requirement_cost_control"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve formatting (one attribute one line)
{ | ||
'name': ' Earned Value Management', | ||
'category': 'Business Requirements Management', | ||
'summary': 'Manage the Business Requirement Deliverables and \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BI report for the based on Earned Value Management
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a README file (based on business_requirement module) so that I can create the content
@elicoidal @victormartinelicocorp Added README.rst and Improved code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed functional tests
@elicoidal @victormartinelicocorp |
@sudhir-serpentcs Please check the test I have written in #107 (comment) before submitting for review. |
@elicoidal @victormartinelicocorp please review code |
@sudhir-serpentcs it is better. Some additional feedback:
|
@elicoidal @victormartinelicocorp please review code |
For #107 (comment) all is clear!
|
@elicoidal @victormartinelicocorp please review code |
Good job! @sudhir-serpentcs |
@seb-elico @victormartinelicocorp can you review? |
@pedrobaeza @dreispt @seb-elico @victormartinelicocorp Let's move forward? |
@@ -181,7 +181,7 @@ def _compute_resource_task_total(self): | |||
br.mapped('deliverable_lines').mapped( | |||
'resource_ids').filtered( | |||
lambda r: r.resource_type == 'task').mapped( | |||
'price_total')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't make this change in the PR.
please review code |
@elicoidal Added Earned Value Management Report.