[IMP] improvement in code
bzr revid: tpa@tinyerp.com-20111209073308-e1xw8ay7f4ep6ed6
This commit is contained in:
parent
2a8c64ed04
commit
e46d052ec0
|
@ -72,12 +72,13 @@ class project_phase(osv.osv):
|
|||
if phase['date_start'] and phase['date_end'] and phase['date_start'] > phase['date_end']:
|
||||
return False
|
||||
return True
|
||||
|
||||
#dead code
|
||||
def _get_default_uom_id(self, cr, uid):
|
||||
model_data_obj = self.pool.get('ir.model.data')
|
||||
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']
|
||||
|
||||
#dead code
|
||||
def _compute_progress(self, cr, uid, ids, field_name, arg, context=None):
|
||||
res = {}
|
||||
if not ids:
|
||||
|
|
Loading…
Reference in New Issue