Account Payment Base OCA
account_payment_base_oca · OCA/bank-payment-alternative
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by20/252 modules depend on it
-
Maturity12/25In 2 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
This is the new base module for the OCA project bank-payment-alternative. As the name suggests, the OCA project bank-payment-alternative is an alternative to the OCA project bank-payment. The project bank-payment-alternative uses the native payment method object of Odoo (model account.payment.method.line) which has been introduced in Odoo v15 and is used on partners and invoices since Odoo v18.
This module adds support for variable link between bank/cash journal and payment method. A typical use case is for a company that has several bank accounts and wants to have an outbound payment method Wire transfer to suppliers which is not linked to a specific bank account and decide which bank account will be debited when confirming the payment order.
This module also adds support for the display of partially scrambled bank account numbers. This is useful for some inbound payment methods where the company debits the bank account of its customers and the company wants to show on its customer invoices the bank account number that will be debited without printing the full bank account number, but print it partially scrambled.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_invoice_report_view_tree |
account.invoice.report | tree | Inherits account.account_invoice_report_view_tree | |
account_payment_method_form |
account.payment.method | form | Inherits account_payment_method_base.account_payment_method_form | |
account_payment_method_line_form |
account.payment.method.line.form | account.payment.method.line | form | New |
account_payment_method_line_search |
account.payment.method.line.search | account.payment.method.line | search | New |
account_payment_method_list |
account.payment.method | list | Inherits account_payment_method_base.account_payment_method_list | |
view_account_invoice_report_search |
account.invoice.report | search | Inherits account.view_account_invoice_report_search | |
view_account_payment_method_line_tree |
account.payment.method.line | tree | Inherits account.view_account_payment_method_line_tree | |
view_invoice_tree |
account_payment_partner.view_invoice_tree | account.move | tree | Inherits account.view_invoice_tree |
view_move_form |
account.move | form | Inherits account.view_move_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
-
payment_method_line_idMany2one → account.payment.method.linereadonly=Truestring='Payment Method' args: 'account.payment.method.line'
No public methods.
-
bank_account_requiredBooleanrelated='preferred_payment_method_line_id.payment_method_id.bank_account_required' -
payment_method_codeCharrelated='preferred_payment_method_line_id.payment_method_id.code'store=True
No public methods.
-
bank_account_requiredBooleanhelp='Activate this option if this payment method requires you to know the bank account number of your customer or supplier.'
No public methods.
-
activeBooleandefault=True -
bank_account_linkSelectiondefault='fixed'help="For payment methods that are always attached to the same bank account of your company (such as wire transfer from customers or SEPA direct debit from suppliers), select 'Fixed'. For payment methods that are not always attached to the same bank account (such as SEPA Direct debit for customers, wire transfer to suppliers), you should select 'Variable', which means that you will select the bank account on the payment order. If your company only has one bank account, you should always select 'Fixed'."required=Truestring='Link to Bank Account' args: [('fixed', 'Fixed'), ('variable', 'Variable')] -
company_idMany2one → res.companycompute='_compute_company_id'precompute=Truereadonly=Falserelated=Falserequired=Truestore=True args: 'res.company' -
filter_journal_idsMany2many → account.journalcompute='_compute_filter_journal_ids' args: 'account.journal' -
journal_idMany2onedomain="[('id', 'in', filter_journal_ids)]" -
nameChartranslate=True -
payment_account_idMany2onestring='Outstanding Payment/Receipt Account' -
payment_method_idMany2onestring='Technical Payment Method' -
refund_payment_method_line_idMany2one → account.payment.method.linecheck_company=Truecomodel_name='account.payment.method.line'domain="[('payment_type', '!=', payment_type)]"help='This payment method will be used when doing refunds coming from the current payment method.'string='Payment Method for Refunds' -
report_descriptionHtmltranslate=True -
selectableBooleanstring='Selectable on Partners/Invoices' -
show_bank_accountSelectiondefault='full'help='On invoice report, show partial or full bank account number.'selection=[('full', 'Full'), ('first', 'First n chars'), ('last', 'Last n chars'), ('first_last', 'First n chars and Last n chars'), ('no', 'No')]string='Show Customer Bank Account' -
show_bank_account_charsIntegerdefault=4string='# of Digits to Show for Customer Bank Account' -
variable_journal_idsMany2many → account.journalcheck_company=Truecolumn1='method_line_id'column2='journal_id'comodel_name='account.journal'compute='_compute_variable_journal_ids'domain="[('id', 'in', filter_journal_ids)]"precompute=Truereadonly=Falserelation='account_payment_method_line_variable_journal_rel'store=Truestring='Allowed Bank Journals'
-
write(self, vals)
No new fields.
Public methods (0)No public methods.
-
property_inbound_payment_method_line_idMany2onedomain=<expr> -
property_outbound_payment_method_line_idMany2onedomain=<expr>
No public methods.
-
acc_number_scrambledCharcompute='_compute_acc_number_scrambled'
-
get_acc_number(self, show_policy, show_chars=4)
Loading…