odoo/odoo#97943
Created by fw-bot
Merged
at 7ed533de576bfe847b8c0edc3d1fc01de59db731
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team for help in case of failure.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:15.0-14.0-opw-2852186-payment_method_register_payments-guva-nYXm-fw
- head
- fc2943b8ab36f4f050613cb942161dc9a6e9899d
- merged
- 3 years ago by Bugfix, Guillaume Vanleynseele (guva)
odoo/odoo | |
---|---|
14.0 | #96905 |
15.0 | #97943 |
saas-15.2 | #98014 |
saas-15.3 | #98121 |
saas-15.4 | #98146 |
16.0 | |
17.0 | |
18.0 | |
saas-18.1 | |
saas-18.2 | |
saas-18.3 | |
master | #98153 |
[FW][FIX] account: payment method for different payment types
This commit fix a bug noticed when fixing this other
one in v15 #93943.
We notice that, in addition to not set correctly
the payment type, the payment method was wrong too.
With this commit, when creating payments from batch,
we check for each payment if its type is the same
as the one set on the wizard. If not (which means
that there are payments of differents types), we set
the payment method regarding the payment type.
Forward-Port-Of: #96905