[IMP]: procument: Improve the exception message

bzr revid: sbh@tinyerp.com-20100712070953-gqlcznvqht5up82x
This commit is contained in:
sbh (Open ERP) 2010-07-12 12:39:53 +05:30
parent 02492798e4
commit e7fb1f2844
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ class procurement_order(osv.osv):
cr.execute('update procurement_order set message=%s where id=%s', (_('Not enough stock and no minimum orderpoint rule defined.'), procurement.id))
message = _('Procurement ') + " '" + procurement.name + "' "+ _("has an exception.") + _('Not enough stock and no minimum orderpoint rule defined.')
self.log(cr, uid, procurement.id, message)
if procurement.state=='exception' and procurement.message=='':
cr.execute('update procurement_order set message=%s where id=%s', (_('Not enough stock '), procurement.id))
return ok
def action_produce_assign_service(self, cr, uid, ids, context={}):