From 9986f25088113d0c735f416d35b254f07fe378e8 Mon Sep 17 00:00:00 2001 From: lreficent Date: Fri, 20 Oct 2017 16:25:54 +0200 Subject: [PATCH] fix dest location --- mrp_repair_refurbish/models/mrp_repair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_repair_refurbish/models/mrp_repair.py b/mrp_repair_refurbish/models/mrp_repair.py index ccec2ccdc..2a778aeae 100644 --- a/mrp_repair_refurbish/models/mrp_repair.py +++ b/mrp_repair_refurbish/models/mrp_repair.py @@ -91,6 +91,6 @@ class mrp_repair_line(orm.Model): elif (type == 'add' and 'to_refurbish' in context and not context['to_refurbish']): scrap_location_ids = self.pool['stock.location'].search(cr, uid, [ - ('scrap_location', '=', True)], context=context) + ('usage', '=', 'customer')], context=context) res['value']['location_dest_id'] = scrap_location_ids[0] return res