From 622e39465b006df40574f02cf70d9e7008d10ac7 Mon Sep 17 00:00:00 2001 From: "Vianney,Anup(OpenERP)" <> Date: Wed, 6 Oct 2010 16:42:47 +0530 Subject: [FIX] project_long_term : _compute() method corrected and view of project phase corrected. lp bug: https://launchpad.net/bugs/655316 fixed bzr revid: ach@tinyerp.com-20101006111247-53h19u0qw8z97u4u --- addons/project_long_term/project_long_term.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'addons/project_long_term/project_long_term.py') diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py index 2caf36766b0..0c31c485753 100644 --- a/addons/project_long_term/project_long_term.py +++ b/addons/project_long_term/project_long_term.py @@ -92,7 +92,7 @@ class project_phase(osv.osv): model_data_id = model_data_obj._get_id(cr, uid, 'product', 'uom_hour') return model_data_obj.read(cr, uid, [model_data_id], ['res_id'])[0]['res_id'] - def _compute(self, cr, uid, ids, context=None): + def _compute(self, cr, uid, ids,field_name, arg, context=None): res = {} if not ids: return res @@ -100,9 +100,7 @@ class project_phase(osv.osv): tot = 0.0 for task in phase.task_ids: tot += task.planned_hours - res[phase.id] = { - 'total_hours' : tot - } + res[phase.id] = tot return res _columns = { -- cgit v1.2.3