merged with trunk

bzr revid: hda@hda-laptop-20110419055709-2idc4o06yjywt6ll
This commit is contained in:
Husen Daudi
2011-04-19 11:27:09 +05:30
-6
View File
@@ -405,12 +405,6 @@ class task(osv.osv):
default.update({'name':new_name})
return super(task, self).copy_data(cr, uid, id, default, context)
def _check_dates(self, cr, uid, ids, context=None):
task = self.read(cr, uid, ids[0], ['date_start', 'date_end'])
if task['date_start'] and task['date_end']:
if task['date_start'] > task['date_end']:
return False
return True
def _is_template(self, cr, uid, ids, field_name, arg, context=None):
res = {}