Merge lp:~pedro.baeza/openobject-addons/fix-lp_1254631 into lp:openobject-addons/7.0

Proposed by Pedro Manuel Baeza
Status: Needs review
Proposed branch: lp:~pedro.baeza/openobject-addons/fix-lp_1254631
Merge into: lp:openobject-addons/7.0
Diff against target: 14 lines (+2/-2)
1 file modified
account/account_invoice.py (+2/-2)
To merge this branch: bzr merge lp:~pedro.baeza/openobject-addons/fix-lp_1254631
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+216723@code.launchpad.net

Description of the change

Fix for the bug #1254631

To post a comment you must log in.

Unmerged revisions

10003. By Pedro Manuel Baeza

[FIX] account: No bank account on invoice when invoicing a contact.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice.py'
2--- account/account_invoice.py 2014-02-05 10:03:24 +0000
3+++ account/account_invoice.py 2014-04-22 13:33:11 +0000
4@@ -519,8 +519,8 @@
5 acc_id = p.property_account_payable.id
6 partner_payment_term = p.property_supplier_payment_term and p.property_supplier_payment_term.id or False
7 fiscal_position = p.property_account_position and p.property_account_position.id or False
8- if p.bank_ids:
9- bank_id = p.bank_ids[0].id
10+ if p.commercial_partner_id.bank_ids:
11+ bank_id = p.commercial_partner_id.bank_ids[0].id
12
13 result = {'value': {
14 'account_id': acc_id,