[FIX] mrp_repair: Fixed log error when End repair is performed.
bzr revid: uco@tinyerp.com-20100805121659-7wlm5reao7z74j8v
This commit is contained in:
parent
77baf80a0a
commit
78c262b86f
|
@ -34,9 +34,6 @@ from tools.translate import _
|
|||
# capacity_hour : capacity per hour. default: 1.0.
|
||||
# Eg: If 5 concurrent operations at one time: capacity = 5 (because 5 employees)
|
||||
# unit_per_cycle : how many units are produced for one cycle
|
||||
#
|
||||
# TODO: Work Center may be recursive ?
|
||||
#
|
||||
|
||||
class stock_move(osv.osv):
|
||||
_inherit = 'stock.move'
|
||||
|
|
|
@ -493,7 +493,6 @@ class mrp_repair(osv.osv):
|
|||
'state': 'done',
|
||||
})
|
||||
repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id})
|
||||
|
||||
if repair.deliver_bool:
|
||||
pick_name = seq_obj.get(cr, uid, 'stock.picking.out')
|
||||
picking = pick_obj.create(cr, uid, {
|
||||
|
@ -506,8 +505,6 @@ class mrp_repair(osv.osv):
|
|||
'invoice_state': 'none',
|
||||
'type': 'out',
|
||||
})
|
||||
wf_service.trg_validate(uid, 'stock.picking', picking, 'button_confirm', cr)
|
||||
|
||||
move_id = move_obj.create(cr, uid, {
|
||||
'name': repair.name,
|
||||
'picking_id': picking,
|
||||
|
@ -521,6 +518,7 @@ class mrp_repair(osv.osv):
|
|||
'tracking_id': False,
|
||||
'state': 'assigned',
|
||||
})
|
||||
wf_service.trg_validate(uid, 'stock.picking', picking, 'button_confirm', cr)
|
||||
self.write(cr, uid, [repair.id], {'state': 'done', 'picking_id': picking})
|
||||
res[repair.id] = picking
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue