bzr revid: stephane@tinyerp.com-20090106124258-p1ob4opvedf2vywt
This commit is contained in:
Stephane Wirtel 2009-01-06 13:42:58 +01:00
parent 9852616769
commit 1eefc2e1f4
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ def _action_open_window(self, cr, uid, data, context):
cr.execute('select default_credit_account_id from account_journal where id=%s', (form['journal_id'],))
account_id = cr.fetchone()[0]
if not account_id:
raise wizard.except_wizard(_('Error'), _('You have to define the bank account\nin the
journal definition for reconciliation.'))
raise wizard.except_wizard(_('Error'), _('You have to define the bank account\nin the journal definition for reconciliation.'))
return {
'domain': "[('journal_id','=',%d), ('account_id','=',%d), ('state','<>','draft')]" % (form['journal_id'],account_id),
'name': _('Standard Encoding'),