Fix DeprecationWarning about use __getattr__ instead of __getitem__
review11791003
This commit is contained in:
1 parent
169f7e8ecd
commit
02cdef74fd
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user