Skip to content
Snippets Groups Projects
Commit c77c3f93 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] account_payment: lin2bank correct fallback condition

parent 57b48602
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ class account_move_line(osv.osv):
if bank.state in bank_type:
line2bank[line.id] = bank.id
break
if line.id not in line2bank and line.partner_id.bank_ids:
if not line2bank.get(line.id) and line.partner_id.bank_ids:
line2bank[line.id] = line.partner_id.bank_ids[0].id
else:
raise osv.except_osv(_('Error!'), _('There is no partner defined on the entry line.'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment