Skip to content
ERPForAll DocsDevelopment

    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.

    AddonDepends onOwns
    analyticbaseanalytic plans, analytic accounts, applicability, analytic lines and their members
    accountbase, product, analyticevery 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.

    The data list of addons/account/manifest.toml keeps this order:

    1. security/account_security.xml (groups and record rules), first;
    2. the default data of each model (data/*.xml);
    3. views, wizard views and report actions;
    4. menus, after the actions they point to;
    5. 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.

    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.