[IMP] project: remove duplicate log for task.

bzr revid: tpa@tinyerp.com-20120514055712-3am03mb1p2558nhp
This commit is contained in:
Turkesh Patel (Open ERP)
2012-05-14 11:27:12 +05:30
parent 00fa501f3e
commit d81a914ca7
+1 -2
View File
@@ -514,7 +514,6 @@ users()
class task(osv.osv):
_name = "project.task"
_description = "Task"
_log_create = True
_date_name = "date_start"
_inherit = ['ir.needaction_mixin', 'mail.thread']
@@ -1104,7 +1103,7 @@ class task(osv.osv):
result = True
else:
result = super(task,self).write(cr, uid, ids, vals, context=context)
if ('type_id' in vals) or ('remaining_hours' in vals) or ('user_id' in vals) or ('state' in vals) or ('kanban_state' in vals):
if ('type_id' in vals) or ('remaining_hours' in vals) or ('user_id' in vals) or ('kanban_state' in vals):
self._store_history(cr, uid, ids, context=context)
self.state_change_send_note(cr, uid, ids, context)
return result