[ADD][BR1187][T24354]timesheet_activity_report_improve#211
[ADD][BR1187][T24354]timesheet_activity_report_improve#211lonelysun wants to merge 3 commits intoElico-Corp:10.0from
Conversation
| @@ -33,9 +33,9 @@ class TimesheetReport(models.Model): | |||
| product_id = fields.Many2one('product.product', 'Product', readonly=True) | |||
There was a problem hiding this comment.
Are you sure this file should be here?
| :alt: License: AGPL-3 | ||
|
|
||
| ================================= | ||
| Timesheet Activity Report Improve |
There was a problem hiding this comment.
Timesheet completion report
module name timesheet_activity_completion_report
There was a problem hiding this comment.
@elicoidal
Actually the BR never mentioned to create a separate module. The improvement must be done in the existing module (simply increment version number...).
@lonelysun
Please arrange refactoring
| Credits | ||
| ======= | ||
|
|
||
| Images |
There was a problem hiding this comment.
remove this section (only for OCA modules)
| @@ -0,0 +1,5 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Copyright 2015-2017 Elico corp (https://www.elico-corp.com) | |||
There was a problem hiding this comment.
no need copyright in init.py files
| { | ||
| 'name': 'Timesheet Activities Report', | ||
| 'version': '10.0.1.1.0', | ||
| 'category': 'Human Resources', |
| @@ -0,0 +1,41 @@ | |||
| # -*- coding: utf-8 -*- | |||
| _inherit = 'timesheet.activity.report' | ||
|
|
||
| br_master_project = fields.Many2one( | ||
| 'project.project', string='BR Master Pro.' |
| ) | ||
| department_id = fields.Many2one('hr.department', string='Department') | ||
|
|
||
| def _select(self): |
| <xpath expr='//div[@name="buttons"]/button[1]' position='before'> | ||
| <button class="oe_inline oe_stat_button" | ||
| type="object" name="br_open_tms_activity_report" | ||
| icon="fa-tasks" string="TMS Com. Rep"> |
| <xpath expr='//button[@name="toggle_active"]' position='before'> | ||
| <button class="oe_inline oe_stat_button" | ||
| type="object" name="project_open_tms_activity_rep" | ||
| icon="fa-tasks" string="TMS Com. Rep" > |
| :alt: License: AGPL-3 | ||
|
|
||
| ================================= | ||
| Timesheet Activity Report Improve |
There was a problem hiding this comment.
@elicoidal
Actually the BR never mentioned to create a separate module. The improvement must be done in the existing module (simply increment version number...).
@lonelysun
Please arrange refactoring
replace #204