Account Create Cash Basis Entry Hook
This module adds hook points in account_partial_reconcile.create_tax_cash_basis_entry() in order to allow sending more context information into creating move line for cash basis
Although the original code has been modified a bit, the logic has been respected and the method still does exactly the same
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Adds a technical extension point to the cash basis tax entry creation process, allowing other modules to pass extra context when generating cash basis journal entries on payment reconciliation.
This is a technical module for developers and accountants using cash basis taxes. It does not add any new screens, menus or buttons. Instead, it modifies how Odoo creates the accounting entries for cash basis taxes when an invoice is reconciled with a payment.
- It replaces the standard method that creates cash basis entries with a version that calls a new hook,
_set_additional_context, before each journal item is processed. Other modules can override this hook to supply extra information (for example, an analytic account or a custom field) that will be used when the cash basis entry is built. - The rest of the cash basis logic is kept unchanged: it still calculates the percentage of the invoice that has been paid, creates the tax basis move, posts it, and reconciles the lines when needed.
- The module touches the
account.partial.reconcilemodel and the cash basis entry creation flow inaccount.move. It does not create new models or data.
Because the hook returns an empty context by default, installing this module alone does not change any visible behaviour in Odoo. Its purpose is to make it possible for other modules to customise cash basis entries without copying the whole standard method.
Depends on
Required by other modules
Text generated by AI (DeepSeek) from reading the Odoo 12.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/l10n-thailand.
terminal Installation and usage
OCA documentation · Odoo 12.0Usage
Source · Odoo 12.0- Add dependency of this module
- Inherit from 'account.partial.reconcile'
- Change the _set_additional_context function in order to add more information for cash basis move line creation
No verified information in OCA: Installation, Configuration.
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.
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.