[FIX]: mrp: Fix log message for production order
bzr revid: rpa@tinyerp.com-20100726104553-vme18hbsvfds3i1n
This commit is contained in:
parent
c169237260
commit
f2ded42800
|
@ -738,7 +738,8 @@ class mrp_production(osv.osv):
|
|||
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr)
|
||||
message = str(production_qty) + " '[" + production.product_id.code + '] ' + production.product_id.name + _("' have been manufactured for ") + production.name
|
||||
for (id, name) in self.pool.get('product.product').name_get(cr, uid, [production.product_id.id]):
|
||||
message = str(production_qty) + ' ' + production.product_uom.name +" '" + name + _("' have been manufactured for ") + production.name
|
||||
self.log(cr, uid, production_id, message)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue