[FIX] mrp_repair: Fixed name of field.

bzr revid: uco@tinyerp.com-20101013045622-5i2x5d3bkw82sqh1
This commit is contained in:
uco (OpenERP) 2010-10-13 10:26:22 +05:30
parent ea14ecf8a1
commit ded4526a93
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class mrp_repair(osv.osv):
if move_id:
move = self.pool.get('stock.move').browse(cr, uid, move_id)
product = self.pool.get('product.product').browse(cr, uid, prod_id)
limit = datetime.strptime(move.date_planned, '%Y-%m-%d %H:%M:%S') + relativedelta(months=product.warranty)
limit = datetime.strptime(move.date_expected, '%Y-%m-%d %H:%M:%S') + relativedelta(months=product.warranty)
data['value']['guarantee_limit'] = limit.strftime('%Y-%m-%d')
data['value']['location_id'] = move.location_dest_id.id
data['value']['location_dest_id'] = move.location_dest_id.id