[IMP] project_scrum: replace log using message_append_note

bzr revid: tpa@tinyerp.com-20120508120537-4pl2idw9osngfcho
This commit is contained in:
Turkesh Patel (Open ERP)
2012-05-08 17:35:37 +05:30
parent 745fb1ff84
commit 3d6eaa630d
@@ -61,7 +61,7 @@ class backlog_sprint_assign(osv.osv_memory):
backlog_obj.write(cr, uid, backlog.id, {'state':'open'})
sprint = sprint_obj.browse(cr, uid, data.sprint_id.id, context=context)
message = _("Product Backlog '%s' is assigned to sprint %s") %(backlog.name, sprint.name)
self.log(cr, uid, backlog.id, message)
self.message_append_note(cr, uid, ids, body=message, context=context)
backlog_obj.write(cr, uid, backlog_ids, {'sprint_id': data.sprint_id.id}, context=context)
return {'type': 'ir.actions.act_window_close'}