Fix typo in _process_account

This commit is contained in:
Cédric Krier committed 2012-09-25 11:26:00 +02:00
1 parent 0f919d5f3a
commit fd23594be2
1 file changed
+2 -2
+2 -2
View File
@@ -210,9 +210,9 @@ class FiscalYear(ModelSQL, ModelView):
Currency = Pool().get('currency.currency')
Deferral = Pool().get('account.account.deferral')
if self.kind == 'view':
if account.kind == 'view':
return
if not self.deferral:
if not account.deferral:
if not Currency.is_zero(self.company.currency, account.balance):
self.raise_user_error('account_balance_not_zero',
error_args=(account.rec_name,))