mrp: fix print float quantity and change MTS/MTO with the new label

bzr revid: ced-9cf2066b34ac5564aa5dbfdff81e5f531dce66c5
This commit is contained in:
ced 2007-07-12 15:31:11 +00:00
parent bc08263dca
commit 794bc532c5
2 changed files with 4 additions and 4 deletions

View File

@ -773,7 +773,7 @@ class mrp_procurement(osv.osv):
return True
def action_move_assigned(self, cr, uid, ids):
self.write(cr, uid, ids, {'state':'running','message':'MTS: products assigned.'})
self.write(cr, uid, ids, {'state':'running','message':'from stock: products assigned.'})
return True
def _check_make_to_stock_service(self, cr, uid, procurement, context={}):
@ -787,7 +787,7 @@ class mrp_procurement(osv.osv):
ok = ok and self.pool.get('stock.move').action_assign(cr, uid, [id])
cr.execute('select count(id) from stock_warehouse_orderpoint where product_id=%d', (procurement.product_id.id,))
if not cr.fetchone()[0]:
cr.execute('update mrp_procurement set message=%s where id=%d', ('MTS and no minimum orderpoint rule defined', procurement.id))
cr.execute('update mrp_procurement set message=%s where id=%d', ('from stock and no minimum orderpoint rule defined', procurement.id))
return ok
def action_produce_assign_service(self, cr, uid, ids, context={}):

View File

@ -68,7 +68,7 @@ def _procure_confirm(self, db_name, uid, data, context):
cr.execute('select name,state from mrp_procurement where id=%d', (proc.id,))
name,state = cr.fetchone()
if state=='exception':
report.append('PROC %d: MTO - %3d %-5s - %s' % (proc.id,proc.product_qty,proc.product_uom.name, proc.product_id.name))
report.append('PROC %d: on order - %3.2f %-5s - %s' % (proc.id,proc.product_qty,proc.product_uom.name, proc.product_id.name))
report_except += 1
report_total +=1
cr.commit()
@ -83,7 +83,7 @@ def _procure_confirm(self, db_name, uid, data, context):
cr.execute('select name,state from mrp_procurement where id=%d', (proc.id,))
name,state = cr.fetchone()
if state=='exception':
report.append('PROC %d: MTS - %3d %-5s - %s' % (proc.id,proc.product_qty,proc.product_uom.name, proc.product_id.name,))
report.append('PROC %d: from stock - %3.2f %-5s - %s' % (proc.id,proc.product_qty,proc.product_uom.name, proc.product_id.name,))
report_except +=1
else:
report_later +=1