← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 786845] Re: [6.0] account_payment: selecting partner bank fails when no suitable bank types are given

 

** Branch linked: lp:~openerp-community/openobject-addons/stefan-
therp_lp786845

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/786845

Title:
  [6.0] account_payment: selecting partner bank fails when no suitable
  bank types are given

Status in OpenERP Modules (addons):
  New

Bug description:
  Hi,

  In account_banking/account_move_line.py:line2bank() a partner bank is
  selected for every line in a payment order. A selection is supposed to
  take place by suitable bank type (regular, iban, etc.). When no
  suitable bank types are available, there is supposed to be a fallback
  on the first partner bank of any type. However, the fallback works by
  checking "line.id not in line2bank", but unfortunately the iteration
  starts with "line2bank[line.id] = False" so line.id is always in
  line2bank at that point and the fallback does not happen.

  As a consequence, no bank accounts are present on the payment order
  lines and the payment order cannot be filed to the bank.

  Cheers,
  Stefan.


References