From 78c262b86f0ee0f06c199647920118b601618629 Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Thu, 5 Aug 2010 17:46:59 +0530 Subject: [PATCH] [FIX] mrp_repair: Fixed log error when End repair is performed. bzr revid: uco@tinyerp.com-20100805121659-7wlm5reao7z74j8v --- addons/mrp_operations/mrp_operations.py | 3 --- addons/mrp_repair/mrp_repair.py | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 5fbbc5ea18a..d0a669590e2 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -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' diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 9c244496d3b..248234d8952 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -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: