Improvements

bzr revid: pso@tinyerp.com-20120806104204-yd7mqqttglgaer8h
This commit is contained in:
pso (OpenERP) 2012-08-06 16:12:04 +05:30
parent 389f8d6803
commit 3bbe3ddbd5
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class project(osv.osv):
def unlink(self, cr, uid, ids, *args, **kwargs):
for proj in self.browse(cr, uid, ids):
if proj.tasks:
raise osv.except_osv(_('Operation Not Permitted !'), _('You cannot delete a project containing tasks. You can either delete all the project\'s tasks and then delete the project or simply deactivate the project.'))
raise osv.except_osv(_('Operation Not Permitted !'), _('You cannot delete a project containing tasks. You can either delete all the project\'s tasks and then delete the project or simply deactivate the project.'))
return super(project, self).unlink(cr, uid, ids, *args, **kwargs)
def _task_count(self, cr, uid, ids, field_name, arg, context=None):