[FIX] mrp_repair: change default production location

bzr revid: christophe@tinyerp.com-20081201110042-6pp1b66tmmdpu437
This commit is contained in:
Christophe Simonis 2008-12-01 12:00:42 +01:00
parent 2c6e93f9e0
commit 3a47894f81
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ class mrp_repair_line(osv.osv, ProductChangeMixin):
}
}
stock_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Stock')])[0]
produc_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Default Production')])[0]
produc_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Production')])[0]
to_invoice=False
if guarantee_limit and today() > mx.DateTime.strptime(guarantee_limit, '%Y-%m-%d'):
to_invoice=True