Skip to content

Commit

Permalink
[IMP] Planning: Imporve help message
Browse files Browse the repository at this point in the history
id=1985510
  • Loading branch information
jbm-odoo committed Nov 4, 2019
1 parent a604478 commit 35b6350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/hr_timesheet/views/project_views.xml
Expand Up @@ -70,7 +70,7 @@
<field name="allow_timesheets" invisible="1"/>
<page string="Timesheets" id="timesheets_tab" attrs="{'invisible': [('allow_timesheets', '=', False)]}">
<group>
<group>
<group name="hours">
<field name="planned_hours" widget="float_time"/>
<label for="subtask_planned_hours" groups="project.group_subtask_project" attrs="{'invisible': [('subtask_count', '=', 0)]}"/>
<div class="o_row" groups="project.group_subtask_project" attrs="{'invisible': [('subtask_count', '=', 0)]}">
Expand Down
2 changes: 1 addition & 1 deletion addons/project/models/project.py
Expand Up @@ -506,7 +506,7 @@ def _read_group_stage_ids(self, stages, domain, order):
readonly=True)
project_id = fields.Many2one('project.project', string='Project', default=lambda self: self.env.context.get('default_project_id'),
index=True, tracking=True, check_company=True, change_default=True)
planned_hours = fields.Float("Planned Hours", help='It is the time planned to achieve the task. If this document has sub-tasks, it means the time needed to achieve this tasks and its childs.',tracking=True)
planned_hours = fields.Float("Planned Hours", help='Time planned to achieve this task (including its sub-tasks).', tracking=True)
subtask_planned_hours = fields.Float("Subtasks", compute='_compute_subtask_planned_hours', help="Computed using sum of hours planned of all subtasks created from main task. Usually these hours are less or equal to the Planned Hours (of main task).")
user_id = fields.Many2one('res.users',
string='Assigned to',
Expand Down

0 comments on commit 35b6350

Please sign in to comment.