← Back to team overview

openerp-india team mailing list archive

[Bug 1254631] Re: No bank account on invoice when invoicing a contact

 

** Branch linked: lp:~pedro.baeza/ocb-addons/fix-lp_1254631

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

** Also affects: ocb-addons/7.0
   Importance: Undecided
       Status: New

** Changed in: ocb-addons/7.0
       Status: New => Fix Committed

** Changed in: openobject-addons
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1254631

Title:
  No bank account on invoice when invoicing a contact

Status in OpenERP Community Backports (Addons):
  Fix Committed
Status in OpenERP Community Backports (Addons) 7.0 series:
  Fix Committed
Status in OpenERP Addons (modules):
  Fix Committed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1254631/+subscriptions