account_payment_base_oca
Extend Odoo's payment method framework to support flexible journal linkage and controlled bank account visibility across partner and invoice flows.
Key Features
- account.payment.method: Adds a bank_account_required flag so technical payment methods can signal when partner bank details are mandatory.
- account.payment.method.line: Supports fixed or variable bank account links with configurable allowed journals, default journals, and automatic company handling.
- account.payment.method.line: Provides selectability toggles, refund method linkage, HTML descriptions, customer bank account display policies, and dedicated list/form/search views with a menu for managing payment methods.
- account.payment.method.line: Enforces configuration integrity with computed journal filters, validation errors, display name adjustments, and protections against changing fixed methods to variable ones.
- account.move: Requires vendor bank accounts when the chosen payment method needs them and stores payment method metadata on invoices for forms and list views.
- account.invoice.report: Includes the preferred payment method line in the reporting model for filtering, grouping, and tree display.
- res.partner: Restricts default inbound and outbound payment method properties to selectable company-specific lines.
- res.partner.bank: Enables contextual scrambling of bank account numbers with policies for showing leading or trailing characters.
- res.bank: Validates BIC codes against length and structural standards.
- security: Applies a multi-company record rule to account.payment.method.line to restrict access to the user's companies.