odoo/odoo — pull request #2280 by Whisno (2014-09-09 11:01:11+00:00)
Title: [FIX] account: account_invoice's onchange_partner_id uses the first partner account

Since a partner can have multiple bank account, partner.bank_ids.id can cause an exception