Skip to content

Commit

Permalink
Merge pull request #41 from ecino/7.0
Browse files Browse the repository at this point in the history
Fix varaible assigment in create_dta.py
  • Loading branch information
nbessi committed Sep 16, 2014
2 parents 21fdcb7 + 62476ef commit cca6bab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions l10n_ch_dta/wizard/create_dta.py
Expand Up @@ -582,10 +582,8 @@ def _initialize_elec_context(self, cr, uid, data, context=None):
# Iban and account number are the same field and
# depends only on the type of account
acc = bank.acc_number or ''
iban = elec_context['comp_bank_iban'].replace(' ', '') or ''
elec_context['comp_bank_iban'] = acc
elec_context['comp_bank_iban'] = acc.replace(' ', '') or ''
elec_context['comp_bank_number'] = acc
elec_context['comp_bank_iban'] = iban
if not elec_context['comp_bank_iban']:
raise orm.except_orm(
_('Error'),
Expand Down

0 comments on commit cca6bab

Please sign in to comment.