diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2020-04-07 12:15:57 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-06-24 11:10:33 +0000 |
| commit | 63cbe8678a35ddfbdeed731b1da28fa5a3b71173 (patch) | |
| tree | 4e1e8cd33c5cd828ffc87accadd85f00102b9690 /addons/hr_timesheet/wizard/project_task_create_timesheet.py | |
| parent | fdc20d13bb6c4f22bcfcf88384f8a13a2cb4b005 (diff) | |
[IMP] project,sale,hr(_timesheet): Generic improments for project
Done the below several improvement on project:
- move the stage description and tooltips to the debug mode
- remove the 'need assistance' tag
- Change the app description in manifest file 'Organize and
plan your projects.'
- Change the burger menu sequence into: Edit/Delete/Share/Set Cover Image
- change the description of the pad feature into, 'edit tasks
description collaboratively in real time. see each author's
text in a distinct color.'
- add the following tooltip for the allow_billable field,
'invoice your time and material from tasks.'
- add an fa-stopwatch icon in front of the Start & the Stop buttons
in task's form view
- rename the 'validate time spent' modal into 'confirm time spent '
+ increase the size of the description field
+ this field should not be required
- project overview: rename 'Hours recorded' into' Recorded Hours'
- project form view: disable the creation for the portal users field
- Rename the 'ready for next stage' kanban state into 'Ready'
TaskID: 2232051
Related Enterprise PR: https://github.com/odoo/enterprise/pull/9961
closes odoo/odoo#49694
Closes: #49694
Related: odoo/enterprise#9961
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/hr_timesheet/wizard/project_task_create_timesheet.py')
| -rw-r--r-- | addons/hr_timesheet/wizard/project_task_create_timesheet.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/hr_timesheet/wizard/project_task_create_timesheet.py b/addons/hr_timesheet/wizard/project_task_create_timesheet.py index df74d492a10..e55043e982d 100644 --- a/addons/hr_timesheet/wizard/project_task_create_timesheet.py +++ b/addons/hr_timesheet/wizard/project_task_create_timesheet.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import api, fields, models, _ +from odoo import api, fields, models from datetime import datetime -from odoo.exceptions import UserError class ProjectTaskCreateTimesheet(models.TransientModel): @@ -18,9 +17,7 @@ class ProjectTaskCreateTimesheet(models.TransientModel): active_id = self._context.get('active_id') if 'task_id' in fields and active_id: - task_id = self.env['project.task'].browse(active_id) result['task_id'] = active_id - result['description'] = task_id.name return result time_spent = fields.Float('Time', digits=(16, 2)) |
