[FIX] mrp_repair: Fixed name of field.
bzr revid: uco@tinyerp.com-20101013045622-5i2x5d3bkw82sqh1
This commit is contained in:
parent
ea14ecf8a1
commit
ded4526a93
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue