[IMP] procurement: improved code.
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Mon, 14 May 2012 13:14:41 +0000 (18:44 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Mon, 14 May 2012 13:14:41 +0000 (18:44 +0530)
bzr revid: tpa@tinyerp.com-20120514131441-n717o7j96jotd506

addons/procurement/procurement.py

index 4e6cb5d..ff5a362 100644 (file)
@@ -387,7 +387,7 @@ class procurement_order(osv.osv):
 
                 if message:
                     message = _("Procurement '%s' is in exception: ") % (procurement.name) + message
-                    self.message_append_note(cr, uid, [procurement], body=message, context=context)
+                    self.message_append_note(cr, uid, [procurement.id], body=message, context=context)
                     cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id))
         return ok