Use id of currency instead of the BrowseRecord as value of create

(transplanted from 2070ef01e8f68eafef48aa4b3787db9515beb1b9)
This commit is contained in:
Cédric Krier committed 2011-07-25 16:15:16 +02:00
1 parent a11199b5f7
commit bb83b87a34
1 file changed
+1 -1
+1 -1
View File
@@ -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)