From dc885fee5016ccfa609ae0b2ddbb9b15ff98de06 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Fri, 13 Jun 2008 16:53:31 +0200 Subject: [PATCH] Added missing currency_obj variable. --- invoice.py | 1 + 1 file changed, 1 insertion(+) 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,