The accounting addon set
The accounting application is two addons (ADR 0187). Both are exact_only = true: every money, quantity and rate
column they add is an exact numeric column.
| Addon | Depends on | Owns |
|---|---|---|
analytic | base | analytic plans, analytic accounts, applicability, analytic lines and their members |
account | base, product, analytic | every table that references a journal item (including the distribution source tables of ADR 0142 and the mapping relations of ADR 0141), and everything else of the accounting application; it is an application |
A later addon (project, timesheet, budgets) that needs analytic accounts depends on analytic only, not on the whole
accounting application. Tables are created by the slice that needs them; the first one is the number chain table of account
(Journal entry numbering).
Dependencies the reference product lists and ERPForAll does not have yet (mail, portal, onboarding, digest)
are added to the depends list by the slice that first uses them; the upgrade installs them. There is no
base_setup addon (the settings page is part of base). The tax kernel is a library crate, not an addon. No other
accounting sibling addon exists until a slice puts its first model in it, and the addons ship no install hook until
a slice has install-time work.
Data order in the account manifest
Section titled “Data order in the account manifest”The data list of addons/account/manifest.toml keeps this order:
security/account_security.xml(groups and record rules), first;- the default data of each model (
data/*.xml); - views, wizard views and report actions;
- menus, after the actions they point to;
security/ir.access.csv, last.
There are no demo files until the onboarding slice. addons/account/tests/manifest_order.rs reads the manifest and
fails if the security XML is listed anywhere but first or the access CSV anywhere but last.
Source layout
Section titled “Source layout”addons/account/src/lib.rs holds only the erp_sdk::addon! call and alphabetically sorted mod lines; each slice
family gets its own directory, so parallel slices do not touch the same file. Add a Cargo dependency on
erp-addon-product or erp-addon-analytic in the slice that first imports a type from it.
Fiscal-position setup and native mapping methods: Fiscal-position resolution.