[IMP] mrp: improved code.

bzr revid: tpa@tinyerp.com-20120515045510-sgku0gbjubnz4zq7
This commit is contained in:
Turkesh Patel (Open ERP) 2012-05-15 10:25:10 +05:30
parent 7c404c7220
commit 1fda7c46fd
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class procurement_order(osv.osv):
cr.execute('update procurement_order set message=%s where id=%s', (_('No BoM defined for this product !'), procurement.id))
for (id, name) in self.name_get(cr, uid, procurement.id):
message = _("Procurement '%s' has an exception: 'No BoM defined for this product !'") % name
self.message_append_note(cr, uid, [procurement], body=message, context=context)
self.message_append_note(cr, uid, [procurement.id], body=message, context=context)
return False
return True