Corrects issue with customer refunds and partner lookup for imported lines.

I think there is no such 7.1 version, so you can simply put `res['partner_id'] = invoice.commercial_partner_id.id`