From 9d2232065d00bc7ca29dd2927bcaa5d83092c890 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 11 Jun 2008 19:38:18 +0200 Subject: [PATCH] Fix for former fields deletion. --- statement.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/statement.py b/statement.py index 790f0d097a..51b95234de 100644 --- a/statement.py +++ b/statement.py @@ -55,15 +55,9 @@ class Statement(OSV): if not value.get('journal'): return {} journal_obj = self.pool.get('statement.journal') - currency_obj = self.pool.get('currency.currency') - company_obj = self.pool.get('company.company') journal= journal_obj.browse(cursor, user, value['journal'], context=context) - return {'currency': currency_obj.name_get( - cursor, user, journal.currency.id, context=context)[0], - 'company': company_obj.name_get( - cursor, user, journal.company.id, context=context)[0], - 'start_balance': journal.balance} + return {'start_balance': journal.balance} def get_end_balance(self, cursor, user, ids, name, arg, context=None): statements = self.browse(cursor, user, ids, context=context)