[IMP]mrp: set procurement_message method

bzr revid: kjo@tinyerp.com-20120529115913-r5tj8yq6mmgesijz
This commit is contained in:
Kuldeep Joshi (OpenERP) 2012-05-29 17:29:13 +05:30
parent f00bb6ee8a
commit 66f588550a
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.id], body=message, context=context)
self.procurement_message(cr, uid, [procurement.id], message, context=context)
return False
return True