diff --git a/invoice.py b/invoice.py index 61fb788b1e..f92b0dc341 100644 --- a/invoice.py +++ b/invoice.py @@ -624,6 +624,7 @@ class Invoice(OSV): ''' Return move line ''' + currency_obj = self.pool.get('currency.currency') res = {} if invoice.currency.id != invoice.company.currency.id: res['amount_second_currency'] = currency_obj.compute(cursor, user,