No bank account on invoice when invoicing a contact
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_
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 14 lines (+2/-2)1 file modifiedaccount/account_invoice.py (+2/-2)
- Holger Brunn (Therp): Approve (code review)
- Stefan Rijnhart (Opener): Approve
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
-
Diff: 14 lines (+2/-2)1 file modifiedaccount/account_invoice.py (+2/-2)
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 |