From bb83b87a34bd15e3d7ceda696c9e1a8a3e66145b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 25 Jul 2011 16:15:16 +0200 Subject: [PATCH] Use id of currency instead of the BrowseRecord as value of create (transplanted from 2070ef01e8f68eafef48aa4b3787db9515beb1b9) --- forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)