[FIX] Project : Corrected former commit

bzr revid: jvo@tinyerp.com-20100803143823-060pxehoogj54srh
This commit is contained in:
RME(OpenERP) 2010-08-03 20:08:23 +05:30 committed by Jay (Open ERP)
parent 12f6b99419
commit c63c8e3dfe
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class res_company(osv.osv):
def write(self, cr, uid, ids,vals, context={}):
task_ids=self.pool.get('project.task').search(cr, uid, [('state','in',['open', 'pending'])])
if ('project_time_mode_id' in vals) and task_ids:
raise osv.except_osv(_('Error !'), _('You can not modify Project Time Unit as there are open or pending tasks created with current time unit.))
raise osv.except_osv(_('Error !'), _('You cannot modify Project Time Unit as there are open or pending tasks created with current time unit.'))
return super(res_company,self).write(cr, uid, ids, vals, context=context)
res_company()