mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
fix dest location
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user