-
Notifications
You must be signed in to change notification settings - Fork 76
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
[10.0][MIG][BR001139][T23297]Migrated Project Completion report from v8 to v10 #194
base: 10.0
Are you sure you want to change the base?
[10.0][MIG][BR001139][T23297]Migrated Project Completion report from v8 to v10 #194
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.
needs tests
activity_stage_id = fields.Many2one( | ||
'project.task.type', 'Stage', | ||
readonly=True, help="Activity Stage") | ||
# FIXME if BR resource UoM is not hours, `qty` needs to be converted |
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.
Can you take care of this too?
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.
Do I need to convert the Day(s) uom only or should convert Unit(s) as well into Hour(s)?
@elicoidal @seb-elico
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.
@elicoidal it's a tricky one, better to not fix it for now since it might have a huge impact on the performance
@YogeshMahera-SerpentCS please leave the FIXME, we'll fix it later
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.
Sure @seb-elico
@@ -1,26 +1,28 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<openerp> | |||
<odoo> | |||
<data> |
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.
remove if noupdate is absent
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.
Missing UT, other than that LGTM
@seb-elico This module related report so Is that require UT? |
@yogesh Yes, we need to make sure that the computation done by the report is correct |
@YogeshMahera-SerpentCS please cherry-pick a5b65c4 (bug fix of the v8 report) |
@seb-elico I have added basic test-cases but not complete whole SQL query computation. |
@YogeshMahera-SerpentCS can you please merge the latest commits from |
@seb-elico Could you please review it |
… 10.0-MIG-project_completion_report
@seb-elico Could you please review it |
@YogeshMahera-SerpentCS @elicoidal Pending merge of #187 to build Travis |
@YogeshMahera-SerpentCS Instead of creating all the UT data in the UT, you should use the demo data created by this module and its parent modules. For instance, there are multiple BRs/Projects/Tasks/TMS in the demo data. You could use them for the UT. Also, you can create some additional demo data for this module and use it in the UT. If unclear, check with @victormartinelicocorp |
Travis is red @YogeshMahera-SerpentCS @seb-elico |
… 10.0-MIG-project_completion_report
@seb-elico Travis is red due to ParseError: "External ID not found in the system: portal.partner_demo_portal" while parsing /home/travis/OCB-10.0/addons/project_issue/data/project_issue_demo.xml:36, near
|
9b3e4e6
to
8e37daa
Compare
'user_id': fields.many2one('res.users', 'User', readonly=True), | ||
'project_id': fields.many2one( | ||
'project.project', 'Project', readonly=True), | ||
'project_state': fields.char( |
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.
@Miya609 seems like this field has been forgotten during migration to v10, please add it back
FYI it's here in v8 new API:
https://github.com/Elico-Corp/odoo-addons/blob/8.0/project_completion_report/report/project_completion_report.py#L31
This is the view:
https://github.com/Elico-Corp/odoo-addons/blob/8.0/project_completion_report/report/project_completion_report_view.xml#L15
@lonelysun Please make sure all latest commits of v8 report are included in this PR 👍 |
@seb-elico I tend to think we should close this PR |
Migrated Project Completion Report from v8 to v10
hr.analytic.timesheet --> account.analytic.line
project.task.work --> account.analytic.line
project_timesheet --> hr_timesheet
@elicoidal @seb-elico @victormartinelicocorp