OdooWiki OCA HUB

Account Payment Mode Default Account

account_payment_mode_default_account folder_open OCA/bank-payment open_in_new
Accounting/Accounting License: AGPL-3

This module allows to define default receivable and payable accounts on payment mode to override the account selected on the customer when computing payment terms lines on invoices.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets you set default receivable and payable accounts on each payment mode, so invoices using that payment mode automatically use those accounts instead of the customer's usual ones.

This module adds two new fields to payment modes: a default receivable account and a default payable account. You can find them on the payment mode form under a new "Default accounts" group.

When you select a payment mode on an invoice, Odoo automatically replaces the receivable or payable line account with the account defined on that payment mode. For customer invoices and receipts it uses the default receivable account; for vendor bills and payments it uses the default payable account. If the payment mode has no account set, the partner's usual account is kept.

The module also changes how partner receivable and payable accounts are stored. It introduces separate stored fields for the partner's own accounts and computes the standard fields from them, so the payment mode override does not permanently change the partner's default accounts.

During installation, existing partner account settings are migrated to the new stored fields. Uninstalling reverses that migration. The chart template generation is also updated so that default partner accounts created from a chart of accounts are stored in the new fields.

This affects invoices (account.move), payment modes (account.payment.mode), partners (res.partner) and the chart of accounts template.

Models and fields (4)
  • res.partner · extends an existing modelproperty_account_payable_id, property_account_receivable_id, property_stored_account_payable_id (Account payable), property_stored_account_receivable_id (Account Receivable)
  • account.move · extends an existing model
  • account.payment.mode · extends an existing modeldefault_payable_account_id, default_receivable_account_id
  • account.chart.template · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/bank-payment.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.