Pedro M. Baeza e4d4c113e6 [FIX] account_payment_purchase: Don't propagate empty payment mode
Steps to reproduce the problem:

- Have a partner without payment mode.
- Create a PO with such partner.
- No payment mode is filled.
- Now fill the payment mode in the partner.
- Create the invoice for the PO.

Current behavior:

The invoice has empty payment mode.

Expected behavior:

The invoice has the partner payment mode. Someone may think that having
no payment mode in the PO may prevail over the partner's payment mode,
or even their flows may consist in empyting the payment mode in the PO
for not binding it with anything yet, but that strategy has more holes
than the one implemented here, as the flow presented proves.

You can then use another one like having an extra payment mode
"Undetermined" or similar for doing such classification as a more
resilient strategy.

It includes a regression test that fails before the change and now is
correct.

TT38608
2024-06-13 10:40:11 -05:00
2024-05-01 16:11:00 +00:00
2024-03-19 08:53:58 +00:00
2024-05-01 16:11:00 +00:00
2022-10-03 19:49:07 +02:00
2023-10-27 22:20:19 +02:00
2022-10-03 19:49:07 +02:00
2024-05-01 16:11:00 +00:00
2022-10-03 19:49:07 +02:00
2024-05-01 16:11:00 +00:00
2022-10-03 19:49:07 +02:00
2023-10-27 22:20:19 +02:00
2023-10-27 22:20:19 +02:00
2022-10-03 19:49:07 +02:00
2024-06-04 13:51:24 +00:00

Runboat Pre-commit Status Build Status codecov Translation Status

bank-payment

TODO: add repo description.

Available addons

addon version maintainers summary
account_banking_mandate 16.0.1.3.1 Banking mandates
account_banking_mandate_contact 16.0.1.0.2 Assign specific banking mandates in contact level
account_banking_mandate_sale 16.0.1.0.0 alexis-via Adds mandates on sale orders
account_banking_mandate_sale_contact 16.0.1.0.1 tisho99 Add a specific contact mandate to sale orders
account_banking_pain_base 16.0.1.2.0 Base module for PAIN file generation
account_banking_sepa_credit_transfer 16.0.1.1.1 Create SEPA XML files for Credit Transfers
account_banking_sepa_direct_debit 16.0.1.4.1 Create SEPA files for Direct Debit
account_payment_method_fs_storage 16.0.1.0.2 Add the possibility to specify on the payment method, a storage where files generated will be pushed to upon payment
account_payment_mode 16.0.1.2.0 Account Payment Mode
account_payment_order 16.0.1.10.0 Account Payment Order
account_payment_order_grouped_output 16.0.1.0.2 Account Payment Order - Generate grouped moves
account_payment_order_notification 16.0.1.0.1 victoralmau Account Payment Order Notification
account_payment_partner 16.0.1.2.3 Adds payment mode on partners and invoices
account_payment_purchase 16.0.2.0.1 Adds Bank Account and Payment Mode on Purchase Orders
account_payment_purchase_stock 16.0.1.0.0 Integrate Account Payment Purchase with Stock
account_payment_sale 16.0.1.0.2 Adds payment mode on sale orders

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Description
Odoo Electronic Payment
Readme 46 MiB
Languages
Python 58.9%
HTML 41%