Tax Balance
account_tax_balance · OCA/account-financial-reporting
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 9.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 am SET financial_type = 'liquidity' FROM account_move_line aml JOIN account_account aa ON aa.id = aml.account_id WHERE aml.move_id = am.id AND am.financial_type IS NULL AND aa.account_type IN ('asset_cash', 'liability_credit_card')` - re-check the table/column names still match after upgrading. (3 occurrences in this file) 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
This module allows to compute tax balances within a certain date range. It depends on date_range module and exposes 'compute' methods that can be called by other modules (like localization ones).
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_move_filter |
Add move type group by | account.move | Inherits account.view_account_move_filter | |
view_move_form |
Add move type field | account.move | form | Inherits account.view_move_form |
view_move_tree |
Add move type column | account.move | tree | Inherits account.view_move_tree |
view_tax_search_balance |
account.tax.search.balance | account.tax | search | New |
view_tax_tree_balance |
account.tax.list.balance | account.tax | list | New |
wizard_open_tax_balances |
wizard.open.tax.balances | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
financial_typeSelectioncompute='_compute_financial_type'readonly=Trueselection='_selection_financial_type'store=True
No public methods.
No new fields.
Public methods (1)-
init(self)
-
balanceFloatcompute='_compute_balance'string='Total Balance' -
balance_refundFloatcompute='_compute_balance' -
balance_regularFloatcompute='_compute_balance'string='Balance' -
base_balanceFloatcompute='_compute_balance'string='Total Base Balance' -
base_balance_refundFloatcompute='_compute_balance' -
base_balance_regularFloatcompute='_compute_balance'string='Base Balance' -
has_movesBooleancompute='_compute_has_moves'search='_search_has_moves'string='Has balance in period'
-
compute_balance(self, tax_or_base='tax', financial_type=None) -
get_balance_domain(self, state_list, type_list) -
get_base_balance_domain(self, state_list, type_list) -
get_context_values(self) -
get_lines_action(self, tax_or_base='tax', financial_type=None) -
get_move_line_partial_domain(self, from_date, to_date, company_ids) -
get_move_lines_domain(self, tax_or_base='tax', financial_type=None) -
get_target_state_list(self, target_move='posted') -
get_target_type_list(self, financial_type=None) -
view_base_lines(self) -
view_base_refund_lines(self) -
view_base_regular_lines(self) -
view_tax_lines(self) -
view_tax_refund_lines(self) -
view_tax_regular_lines(self)
-
company_idsMany2many → res.companycomodel_name='res.company'default=<expr>domain=<expr>required=Truestring='Companies' -
date_range_idMany2one → date.rangeargs: 'date.range' -
from_dateDatecompute='_compute_date_range'readonly=Falserequired=Truestore=True -
target_moveSelectiondefault='posted'required=True args: [('posted', 'All Posted Entries'), ('all', 'All Entries')], 'Target Moves' -
to_dateDatecompute='_compute_date_range'readonly=Falserequired=Truestore=True
-
open_taxes(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…