Account Analytic Document Date
account_analytic_document_date · OCA/account-analytic
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move SET analytic_document_date = invoice_date WHERE analytic_document_date IS NULL` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
The module introduces a new field in the accounting records to specify the "Accrual Date" for income and expenses. This field is crucial for accurately tracking when the revenue or expense is earned or incurred, regardless of the invoice creation date.
For instance, if an invoice is created in December but refers to sales made in November, the Accrual Date allows us to reflect this correctly in our accounting records. This ensures compliance with accrual-based accounting principles and provides better insights into the financial period to which transactions belong.
This feature is particularly valuable for businesses that need to differentiate between the accounting period of transaction occurrence and the timing of document issuance.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_move_view_form_inherit |
account_move_view_form_inherit | account.move | form | Inherits account.view_move_form |
bank_statement_line_form_reconcile_view_inherit |
bank_statement_line_form_reconcile_view.inherit | account.bank.statement.line | form | Inherits account_reconcile_oca.bank_statement_line_form_reconcile_view |
view_account_analytic_line_filter_inherit_document_date |
Analytic Document Date Search | account.analytic.line | Inherits analytic.view_account_analytic_line_filter | |
view_account_analytic_line_form |
account.analytic.line.form | account.analytic.line | form | Inherits analytic.view_account_analytic_line_form |
view_account_analytic_line_tree |
account.analytic.line.tree | account.analytic.line | tree | Inherits analytic.view_account_analytic_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
document_dateDate
No public methods.
-
analytic_document_dateDatereadonly=Falserelated='move_id.analytic_document_date' args: 'Analytic Document Date'
-
reconcile_bank_line(self)
-
analytic_document_dateDate
-
action_post(self) -
create(self, vals_list)@api.model_create_multi
No new fields.
Public methods (0)No public methods.
Loading…