diff --git a/forecast.py b/forecast.py index aca5ce4039..8afa300455 100644 --- a/forecast.py +++ b/forecast.py @@ -260,7 +260,7 @@ class ForecastLine(ModelSQL, ModelView): 'quantity': qty * line.minimal_quantity, 'planned_date': line.forecast.from_date + datetime.timedelta(day), 'company': line.forecast.company.id, - 'currency':line.forecast.company.currency, + 'currency':line.forecast.company.currency.id, 'unit_price': unit_price, }, context=context)