diff --git a/forecast.py b/forecast.py index 6ff3ced47f..04d31fcfe0 100644 --- a/forecast.py +++ b/forecast.py @@ -529,7 +529,7 @@ class ForecastComplete(Wizard): res = {} for field in ("to_date", "from_date"): - res[field] = forecast[field] - relativedelta(years=1) + res[field] = getattr(forecast, field) - relativedelta(years=1) return res def _get_product_quantity(self):