No bank account on invoice when invoicing a contact

Bug #1254631 reported by Stefan Rijnhart (Opener)
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
Fix Committed
Undecided
Unassigned

Bug Description

Steps to reproduce:
================
1 Create a partner with a bank account. Create a contact on that partner. Note that you cannot add a bank account to the contact directly, because the bank accounts are supposed to be configured on the commercial/parent partner.

2 Create an invoice for the contact

Expected results:
==============
When selecting the contact, I expect the parent partner's bank account to be filled in on the invoice's 'Other Info' tab.

Actual results:
============
The bank account is not added to the invoice. Moreover, when trying to select the bank account manually, the domain on partner_id prevents this. No bank account can be selected even if the contact's commercial partner has a bank account configured.

Analysis and proposed solution:
=========================
When invoicing a contact, the onchange method considers the bank accounts of the contact, not of the commercial partner. This should be easy to fix in 7.0 in the onchange method. However, this is seems meaningless to me if no choice can be made in the case of multiple accounts anyway, due to the problem with the domain.

The bank domain cannot be properly fixed under the stable policy as it depends on having the commercial_partner_id field available in the invoice form. In trunk, applying this field in the domain should fix the problem.

Tags: invoicing

Related branches

description: updated
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
summary: - [7.0] No bank account on invoice when invoicing a contact
+ No bank account on invoice when invoicing a contact
tags: added: invoicing
Changed in openobject-addons:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.