Skip to content

Commit

Permalink
Merge pull request #59 from acsone/8.0-imp-add-partner-bank-field-ape
Browse files Browse the repository at this point in the history
[IMP] Consider partner_bank_id field on account invoice merge
  • Loading branch information
pedrobaeza committed Apr 3, 2015
2 parents f781f8d + fefc84e commit f9bab2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_invoice_merge/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

INVOICE_KEY_COLS = ['partner_id', 'user_id', 'type',
'account_id', 'currency_id',
'journal_id', 'company_id']
'journal_id', 'company_id', 'partner_bank_id']

INVOICE_LINE_KEY_COLS = ['name', 'origin', 'discount',
'invoice_line_tax_id', 'price_unit',
Expand Down Expand Up @@ -53,6 +53,7 @@ def _get_first_invoice_fields(self, invoice):
'payment_term': invoice.payment_term.id,
'period_id': invoice.period_id.id,
'invoice_line': {},
'partner_bank_id': invoice.partner_bank_id.id,
}

@api.multi
Expand Down

0 comments on commit f9bab2e

Please sign in to comment.