Skip to main content
Version: Tryton 8.0 (LTS)

account

Tryton 8.0 · Reference generated from the official source code

This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.

Purpose

The Account Module defines the fundamentals needed for basic double entry accounting. It also includes templates for the basic universal chart of accounts <https://www.ifrs-gaap.com/basic-universal-coa>_, balance sheet and income statement.

The analysis found 15 Python files, 136 XML files, 120 views, 164 actions, 51 menus, and 5 reports.

Functional user guide

Who should use it

This module is relevant to people responsible for account processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.

What you will be able to do

After configuration, you will be able to identify the records added by account, execute actions in the correct state, produce its reports, and understand the information shared with other modules.

Requirements and preparation

Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.

Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.

Required dependencies

  • company — must be installed and configured before testing this module.
  • currency — must be installed and configured before testing this module.
  • ir — must be installed and configured before testing this module.
  • party — must be installed and configured before testing this module.
  • res — must be installed and configured before testing this module.

Optional integrations

  • Activate the module and sign in again to load menus and permissions.
  • Review new company configuration options and defaults.
  • Assign groups to test users using least privilege.
  • Create small, verifiable master data before bulk imports.
  • Run one complete scenario from draft to final state and inspect related records.

Module objects and concepts

  • account.account: groups 10 model(s), including account.account, account.account.context, account.account.deferral, account.account.open_type, account.account.party. These records form the information users inspect or modify during the process.
  • account.account-account: groups 1 model(s), including account.account-account.tax. These records form the information users inspect or modify during the process.
  • account.aged_balance: groups 2 model(s), including account.aged_balance, account.aged_balance.context. These records form the information users inspect or modify during the process.
  • account.balance_sheet: groups 2 model(s), including account.balance_sheet.comparison.context, account.balance_sheet.context. These records form the information users inspect or modify during the process.
  • account.configuration: groups 6 model(s), including account.configuration, account.configuration.default_account, account.configuration.default_tax_rule, account.configuration.journal, account.configuration.sequence. These records form the information users inspect or modify during the process.
  • account.create_chart: groups 4 model(s), including account.create_chart, account.create_chart.account, account.create_chart.properties, account.create_chart.start. These records form the information users inspect or modify during the process.
  • account.fiscalyear: groups 7 model(s), including account.fiscalyear, account.fiscalyear.balance_non_deferral, account.fiscalyear.balance_non_deferral.start, account.fiscalyear.create_periods, account.fiscalyear.create_periods.start. These records form the information users inspect or modify during the process.
  • account.general_ledger: groups 7 model(s), including account.general_ledger, account.general_ledger.account, account.general_ledger.account.context, account.general_ledger.account.party, account.general_ledger.account.party.open. These records form the information users inspect or modify during the process.
  • account.income_statement: groups 1 model(s), including account.income_statement.context. These records form the information users inspect or modify during the process.
  • account.journal: groups 3 model(s), including account.journal, account.journal.open_cash.context, account.journal.period. These records form the information users inspect or modify during the process.
  • account.move: groups 29 model(s), including account.move, account.move.cancel, account.move.cancel.default, account.move.context, account.move.general_journal. These records form the information users inspect or modify during the process.
  • account.period: groups 1 model(s), including account.period. These records form the information users inspect or modify during the process.
  • account.reconcile: groups 3 model(s), including account.reconcile, account.reconcile.show, account.reconcile.start. These records form the information users inspect or modify during the process.
  • account.tax: groups 17 model(s), including account.tax, account.tax.code, account.tax.code.context, account.tax.code.line, account.tax.code.line.template. These records form the information users inspect or modify during the process.
  • account.trial_balance: groups 1 model(s), including account.trial_balance. These records form the information users inspect or modify during the process.
  • account.update_chart: groups 3 model(s), including account.update_chart, account.update_chart.start, account.update_chart.succeed. These records form the information users inspect or modify during the process.
  • company.company: groups 1 model(s), including company.company. These records form the information users inspect or modify during the process.
  • ir.cron: groups 1 model(s), including ir.cron. These records form the information users inspect or modify during the process.
  • party.erase: groups 1 model(s), including party.erase. These records form the information users inspect or modify during the process.
  • party.party: groups 2 model(s), including party.party, party.party.account. These records form the information users inspect or modify during the process.
  • party.replace: groups 1 model(s), including party.replace. These records form the information users inspect or modify during the process.

Typical workflow

  1. Select the correct company and date before creating a document.
  2. Complete master data before lines or details.
  3. Use form buttons for state changes; saving is not the same as validating or posting.
  4. Review warnings, totals, related documents, and traceability.
  5. Generate the report and compare it with the record before delivery.

Actions, states, and wizards

  • close — action or transition that starts close. Check permissions, current state, and related records before running it.
  • create_periods — action or transition that starts create periods. Check permissions, current state, and related records before running it.
  • lock_ — action or transition that starts **lock **. Check permissions, current state, and related records before running it.
  • post — action or transition that starts post. Check permissions, current state, and related records before running it.
  • reopen — action or transition that starts reopen. Check permissions, current state, and related records before running it.
  • closed — action or transition that starts closed. Check permissions, current state, and related records before running it.
  • locked — action or transition that starts locked. Check permissions, current state, and related records before running it.
  • open — action or transition that starts open. Check permissions, current state, and related records before running it.
  • account.account.open_type — wizard that collects data and performs account › account › open type. Check permissions, current state, and related records before running it.
  • account.create_chart — wizard that collects data and performs account › create chart. Check permissions, current state, and related records before running it.
  • account.fiscalyear.balance_non_deferral — wizard that collects data and performs account › fiscalyear › balance non deferral. Check permissions, current state, and related records before running it.
  • account.fiscalyear.create_periods — wizard that collects data and performs account › fiscalyear › create periods. Check permissions, current state, and related records before running it.
  • account.fiscalyear.renew — wizard that collects data and performs account › fiscalyear › renew. Check permissions, current state, and related records before running it.
  • account.general_ledger.account.party.open — wizard that collects data and performs account › general ledger › account › party › open. Check permissions, current state, and related records before running it.
  • account.move.cancel — wizard that collects data and performs account › move › cancel. Check permissions, current state, and related records before running it.
  • account.move.cancel.default — wizard that collects data and performs account › move › cancel › default. Check permissions, current state, and related records before running it.
  • account.move.line.group.start — wizard that collects data and performs account › move › line › group › start. Check permissions, current state, and related records before running it.
  • account.move.line.reschedule.term — wizard that collects data and performs account › move › line › reschedule › term. Check permissions, current state, and related records before running it.
  • account.move.open_account — wizard that collects data and performs account › move › open account. Check permissions, current state, and related records before running it.
  • account.move.open_journal — wizard that collects data and performs account › move › open journal. Check permissions, current state, and related records before running it.
  • account.move.reconcile_lines — wizard that collects data and performs account › move › reconcile lines. Check permissions, current state, and related records before running it.
  • account.move.template.create — wizard that collects data and performs account › move › template › create. Check permissions, current state, and related records before running it.
  • account.move.unreconcile_lines — wizard that collects data and performs account › move › unreconcile lines. Check permissions, current state, and related records before running it.
  • account.reconcile — wizard that collects data and performs account › reconcile. Check permissions, current state, and related records before running it.
  • account.tax.open_code — wizard that collects data and performs account › tax › open code. Check permissions, current state, and related records before running it.
  • account.tax.test — wizard that collects data and performs account › tax › test. Check permissions, current state, and related records before running it.
  • account.update_chart.start — wizard that collects data and performs account › update chart › start. Check permissions, current state, and related records before running it.

Controls before production

  • Define who creates, reviews, confirms, cancels, and reads.
  • Test closed periods, unauthorized users, and incomplete data.
  • Verify numbering, currency, rounding, and time zone where applicable.
  • Document error correction without direct database edits.
  • Include its tables and files in backup and restore procedures.

Troubleshooting

  • If a menu is missing, verify activation, module-list update, groups, and a new login session.
  • If a field rejects a value, inspect its domain, company, state, and configured dependencies.
  • If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
  • If results differ, reproduce a minimal case and compare related records before and after.
  • Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.

Developer guide

Architecture and extension points

The package contains 140 Python classes and declares or extends 103 models. It uses Boolean, Char, Date, Function, Integer, Many2Many, Many2One, MultiValue, Numeric, One2Many, Reference, Selection, Text. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.

Registered or extended models

  • account.account
  • account.account-account.tax
  • account.account.context
  • account.account.deferral
  • account.account.open_type
  • account.account.party
  • account.account.template
  • account.account.template-account.tax.template
  • account.account.type
  • account.account.type.statement
  • account.account.type.template
  • account.aged_balance
  • account.aged_balance.context
  • account.balance_sheet.comparison.context
  • account.balance_sheet.context
  • account.configuration
  • account.configuration.default_account
  • account.configuration.default_tax_rule
  • account.configuration.journal
  • account.configuration.sequence
  • account.configuration.tax_rounding
  • account.create_chart
  • account.create_chart.account
  • account.create_chart.properties
  • account.create_chart.start
  • account.fiscalyear
  • account.fiscalyear.balance_non_deferral
  • account.fiscalyear.balance_non_deferral.start
  • account.fiscalyear.create_periods
  • account.fiscalyear.create_periods.start
  • account.fiscalyear.renew
  • account.fiscalyear.renew.start
  • account.general_ledger
  • account.general_ledger.account
  • account.general_ledger.account.context
  • account.general_ledger.account.party
  • account.general_ledger.account.party.open
  • account.general_ledger.line
  • account.general_ledger.line.context
  • account.income_statement.context
  • account.journal
  • account.journal.open_cash.context
  • account.journal.period
  • account.move
  • account.move.cancel
  • account.move.cancel.default
  • account.move.context
  • account.move.general_journal
  • account.move.line
  • account.move.line.delegate
  • account.move.line.delegate.start
  • account.move.line.group
  • account.move.line.group.start
  • account.move.line.receivable_payable.context
  • account.move.line.reschedule
  • account.move.line.reschedule.preview
  • account.move.line.reschedule.start
  • account.move.line.reschedule.term
  • account.move.line.template
  • account.move.open_account
  • account.move.open_journal
  • account.move.open_journal.ask
  • account.move.reconcile.write_off
  • account.move.reconcile_lines
  • account.move.reconcile_lines.writeoff
  • account.move.reconciliation
  • account.move.template
  • account.move.template.create
  • account.move.template.create.keywords
  • account.move.template.create.template
  • account.move.template.keyword
  • account.move.unreconcile_lines
  • account.period
  • account.reconcile
  • account.reconcile.show
  • account.reconcile.start
  • account.tax
  • account.tax.code
  • account.tax.code.context
  • account.tax.code.line
  • account.tax.code.line.template
  • account.tax.code.template
  • account.tax.group
  • account.tax.line
  • account.tax.line.template
  • account.tax.open_code
  • account.tax.rule
  • account.tax.rule.line
  • account.tax.rule.line.template
  • account.tax.rule.template
  • account.tax.template
  • account.tax.test
  • account.tax.test.result
  • account.trial_balance
  • account.update_chart
  • account.update_chart.start
  • account.update_chart.succeed
  • company.company
  • ir.cron
  • party.erase
  • party.party
  • party.party.account
  • party.replace

Field types used

  • Boolean
  • Char
  • Date
  • Function
  • Integer
  • Many2Many
  • Many2One
  • MultiValue
  • Numeric
  • One2Many
  • Reference
  • Selection
  • Text

Detected classes and public methods

Classes: Account, AccountContext, AccountDeferral, AccountMissing, AccountParty, AccountTax, AccountTemplate, AccountTemplateTaxTemplate, AccountTypeStatement, AccountValidationError, ActivePeriodMixin, AgedBalance, AgedBalanceContext, AgedBalanceReport, BalanceNonDeferral, BalanceNonDeferralStart, BalanceSheetComparisonContext, BalanceSheetContext, CancelDelegatedWarning, CancelMoves, CancelMovesDefault, CancelWarning, ChartWarning, ClosePeriodError, Company, Configuration, ConfigurationDefaultAccount, ConfigurationTaxRounding, ContextCompanyMixin, CopyWarning, CreateChart, CreateChartAccount, CreateChartProperties, CreateChartStart, CreateMove, CreateMoveKeywords, CreateMoveTemplate, CreatePeriods, CreatePeriodsStart, Cron, DefaultTaxRule, DelegateLineError, DelegateLineWarning, DelegateLines, DelegateLinesStart, DescriptionOriginMixin, FiscalYear, FiscalYearCloseError, FiscalYearNotFoundError, FiscalYearReOpenError, GeneralJournal, GeneralLedger, GeneralLedgerAccount, GeneralLedgerAccountContext, GeneralLedgerAccountParty, GeneralLedgerLine, GeneralLedgerLineContext, GroupLineError, GroupLineWarning, GroupLines, GroupLinesStart, IncomeStatementContext, Journal, JournalCashContext, JournalMissing, JournalPeriod, KeywordStateView, Line, LineReceivablePayableContext, Move, MoveContext, MoveLineMixin, MoveLineTemplate, MoveTemplate, MoveTemplateExpressionError, MoveTemplateKeyword, MoveTemplateKeywordValidationError, OpenAccount, OpenGeneralLedgerAccountParty, OpenJournal

Methods: account_payable_used(), account_receivable_used(), accounts_to_reconcile(), allow_grouping(), apply(), cancel(), check_access(), check_account(), check_description(), check_erase_company(), check_fiscalyear_dates(), check_journal_period_modify(), check_lines(), check_modification(), check_move_dates(), check_move_domain(), check_name(), check_period_dates(), check_second_currency(), check_update_unit_price(), close(), company(), compute(), copy(), create(), create_account(), create_fiscalyear(), create_move(), create_period(), create_periods(), create_rule(), create_rule_line(), create_tax(), create_tax_code(), create_tax_code_line(), create_type(), currencies_to_reconcile(), current(), default_active(), default_amount_second_currency(), default_ask(), default_automatic(), default_cancel(), default_company(), default_comparison(), default_credit(), default_currency(), default_currency_exchange_journal(), default_customer_tax_rule(), default_date(), default_debit(), default_end_day(), default_end_period(), default_fiscalyear(), default_frequency(), default_from_date(), default_journal(), default_kind(), default_left(), default_line_count(), default_method(), default_move(), default_only_balanced(), default_operator(), default_party_cumulate(), default_payable(), default_period(), default_posted(), default_preview(), default_previous_fiscalyear(), default_properties(), default_quantity(), default_receivable(), default_reconciled(), default_reconciliation_sequence(), default_required(), default_reset_sequences(), default_reversal(), default_right(), default_show(), default_start(), default_start_date(), default_start_period(), default_state(), default_supplier_tax_rule(), default_tax_date(), default_tax_rounding(), default_template_override(), default_term1(), default_term2(), default_term3(), default_test(), default_to_date(), default_type(), default_unit(), default_update_unit_price(), default_writeoff(), delegate_lines(), do_balance(), do_create_()

Code map

Detected 15 Python files, 136 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.

  • __init__.py
  • account.py
  • account.xml
  • account_chart.xml
  • account_chart_de.xml
  • account_chart_en.xml
  • account_chart_es.xml
  • account_chart_fr.xml
  • common.py
  • company.py
  • company.xml
  • configuration.py
  • configuration.xml
  • doc/conf.py
  • exceptions.py
  • fiscalyear.py
  • fiscalyear.xml
  • ir.py
  • journal.py
  • journal.xml
  • message.xml
  • move.py
  • move.xml
  • move_template.py
  • move_template.xml
  • party.py
  • party.xml
  • period.py
  • period.xml
  • tax.py
  • tax.xml
  • view/account_balance_sheet_tree.xml
  • view/account_context_form.xml
  • view/account_deferral_form.xml
  • view/account_deferral_tree.xml
  • view/account_form.xml
  • view/account_income_statement_tree.xml
  • view/account_list.xml
  • view/account_list_balance_sheet.xml
  • view/account_template_form.xml
  • view/account_template_list.xml
  • view/account_template_tree.xml
  • view/account_tree.xml
  • view/account_tree_chart.xml
  • view/account_type_form.xml
  • view/account_type_list.xml
  • view/account_type_template_form.xml
  • view/account_type_template_list.xml
  • view/account_type_template_tree.xml
  • view/account_type_tree.xml

Test plan

  • Activation on an empty database and upgrade from the previous revision.
  • Create, update, copy, and delete according to state and access rights.
  • Every button, transition, and wizard with valid and invalid scenarios.
  • Applicable multi-company rules, translations, time zones, and currencies.
  • Combined installation with required and optional dependencies.
  • Backup and restore of records, attachments, and generated reports.

Compatibility and upgrades

Keep server and modules on series 8.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.

Official documentation evidence

Topics found: Account · Account Type · Reports · Statement · Account Party · Account Deferral · General Ledger Account · General Ledger · Trial Balance · General Ledger Account Party · Aged Balance · Configuration · Fiscal Year · Wizards · Create Periods · Renew Fiscal Year · Balance Non-Deferral · Period · Design · Journal · Open Journal · Journal Period · Account Move · General Journal · Cancel Moves · Account Move Line · Group Lines · Reschedule Lines · Reconcile Lines · Unreconcile Lines · Reconciliation · Reconcile Accounts · Reconcile Write-off · Tax · Test Tax · Tax Line · Tax Group · Tax Rule · Tax Code · Templates

    • doc/design/account.inc.rst: In Tryton the Account concept is used to represent the different accounts that make up the Company's <company:model-company.company> chart of accounts. These accounts are commonly organised into a structure, with each account having a single parent and zero or more sub accounts.
    • doc/design/configuration.inc.rst: The Account Configuration contains the settings used to configure the general behaviour and default values for accounting related activities.
    • doc/design/fiscal-year.inc.rst: In accounting the concept of a Fiscal Year is used when generating a Company's <company:model-company.company> financial reports. In Tryton it groups together a set of Periods <model-account.period>.
    • doc/design/journal.inc.rst: A Journal represents a book of original entry from traditional manual accounting. In Tryton it allows Account Moves <model-account.move> of the same class to be grouped together. Every account move gets associated with a journal.
    • doc/design/move.inc.rst: The Account Move concept is used to record transactions in a Company's <company:model-company.company> accounts. In Tryton each account move is made up from several Account Move Lines <model-account.move.line>. These lines form the separate parts of the transaction as required by double-entry bookkeeping_ principles.
    • doc/design/tax.inc.rst: The Tax concept allows the taxes a Company <company:model-company.company> uses to be represented in Tryton. Taxes can be for a fixed amount, or a percentage of an item's price. The tax can also be setup to be included as part of an item's price for any later taxes that get applied, resulting in it being compounded by these later taxes.
    • doc/design/template.inc.rst: The Templates are used to predefine a set of basic accounting structures and rules. The templates have the same properties as their non-template equivalents except they are not linked to a Company <company:model-company.company>.
    • doc/index.rst: The Account Module defines the fundamentals needed for basic double entry accounting. It also includes templates for the basic universal chart of accounts <https://www.ifrs-gaap.com/basic-universal-coa>_, balance sheet and income statement.
    • doc/reference.rst: This mixin_ makes it easy to create a ~trytond:trytond.model.Model which is active between a start and end date. The date range, Periods <model-account.period>, or Fiscal Years <model-account.fiscalyear> that are set in the context are used to determine if a particular record should be considered active, or not.

View source code