c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24878
[Bug 786845] [NEW] [6.0] account_payment: selecting partner bank fails when no suitable bank types are given
Public bug reported:
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.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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.
Follow ups
References