diff options
| author | Tanguy Charlier <tac@odoo.com> | 2016-02-19 17:05:10 +0100 |
|---|---|---|
| committer | Tanguy Charlier <tac@odoo.com> | 2016-03-14 14:27:41 +0100 |
| commit | 5bc0bd37075848d10c115265eae3771e0b1c940d (patch) | |
| tree | e4b343af42de8f850fe1360b4d4a5b2eac4be2e5 /addons/project/project.py | |
| parent | bc758128a84d24eaa75a600fd0623ae5581e4709 (diff) | |
[REF] hr_timesheet: migrate project_timesheet.py to new API
* New API migration
* Fix delay hours and total computation : Delay was wrongly computed as 0.0 in every case.
* Remove onchange from task. They were more confusing than helping.
Diffstat (limited to 'addons/project/project.py')
| -rw-r--r-- | addons/project/project.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/addons/project/project.py b/addons/project/project.py index e7e7f4b5dd9..eeeb4741c1e 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -412,14 +412,6 @@ class task(osv.osv): 'stage_id': _read_group_stage_ids, } - def onchange_remaining(self, cr, uid, ids, remaining=0.0, planned=0.0): - if remaining and not planned: - return {'value': {'planned_hours': remaining}} - return {} - - def onchange_planned(self, cr, uid, ids, planned=0.0, effective=0.0): - return {'value': {'remaining_hours': planned - effective}} - def onchange_project(self, cr, uid, id, project_id, context=None): if project_id: project = self.pool.get('project.project').browse(cr, uid, project_id, context=context) |
