Daily updates from Odoo
Wednesday, August 14, 2024
1 change
Code cleanup and technical improvements
This change lets users manually add certain payment methods to journals even when currency or country criteria would previously hide them, while keeping key safeguards such as journal type and payment mode rules. Default payment method generation remains unchanged, so existing automated setup behavior is preserved while giving finance teams more flexibility for bank-specific requirements.
Original PR description
*/Affected modules: account_batch_payment, account_sepa, account_sepa_direct_debit, l10n_au_aba, l10n_ca_payment_cpa005, l10n_uk_bacs, l10n_us_payment_nacha, payment_sepa_direct_debit This commit is…
*/Affected modules: account_batch_payment, account_sepa, account_sepa_direct_debit, l10n_au_aba, l10n_ca_payment_cpa005, l10n_uk_bacs, l10n_us_payment_nacha, payment_sepa_direct_debit This commit is part of the bigger refactor commit in the community module. This commit refactors the restriction set on the tree view of Journal's Inbound/Outbound payment method lines so that it's possible to manually add method that were initially restricted. In other words, if a payment method is available (and some partial rules are met), we will now be able to add them manually in the journal. The alleviated restriction will be from the currency and country domain, but the mode (unique / electronic) restriction and journal type will stay. Purpose: Sometimes, the user might want to manually add a payment method even when it doesn't meet the method's criteria. For example: an european company wants to create ISO20022 files for his bank that only accepts this type of payment files. Because the bank account is an IBAN, ISO20022 is not available because the journal currency is EUR. This commit will not change the current behavior of generation of default inbound/outbound payment method lines. By default, the domains in the payment methods are considered when adding to the default lines. To make it performance friendly, in the compute for available payment method in journal, we will filter the non bank/cash journal and keep them outside the loop, since payment method are useless for them. task-id: 4058440 related community PR: https://github.com/odoo/odoo/pull/175342