From be1a8c1e604749abf7ee3480839b37552209b85e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 5 Oct 2010 10:01:07 +0200 Subject: [PATCH] [FIX] mrp_repair: typo in variable name bzr revid: xmo@openerp.com-20101005080107-reomihila8y8g9uj --- addons/mrp_repair/mrp_repair.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 6fe86fd3f2b..a4bfe9457e7 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -683,12 +683,12 @@ class mrp_repair_line(osv.osv, ProductChangeMixin): 'location_dest_id': False } } - produc_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Production')])[0] + product_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Production')])[0] if type != 'add': return {'value': { 'to_invoice': False, - 'location_id': produc_id, + 'location_id': product_id, 'location_dest_id': False } } @@ -701,7 +701,7 @@ class mrp_repair_line(osv.osv, ProductChangeMixin): return {'value': { 'to_invoice': to_invoice, 'location_id': stock_id, - 'location_dest_id': produc_id + 'location_dest_id': product_id } }