4.3 KiB
4.3 KiB
Accounting Report Gap Analysis Workflow
Date: 2026-05-05 Purpose: reusable method for comparing Tradon/Tryton accounting reports with an external target standard.
Scope
Use this workflow when comparing one accounting report at a time, for example General Ledger, Trial Balance, Aged Balance, Balance Sheet, Income Statement, or tax reports.
The first completed example is:
general_ledger_gap_analysis.md
Source Priority
Read sources in this order:
- Root
AGENTS.md. notes/accounting/README.md.- Existing accounting notes, especially
reporting.md,business_rules.md, andcomparison_checklist.md. - Target standard report definition.
- Target standard shared docs, such as reporting standards, parameter rules, and field catalogues.
- Tradon/Tryton report code, views, models, templates, and tests.
If the target standard lives outside this repository, request filesystem access
when needed and keep the resulting notes inside notes/accounting/.
Extraction Steps
- Identify the target report code and file.
- Example:
GL-001 General Ledger.
- Example:
- Read the target report definition completely.
- Read shared target docs that define common rules:
- parameters;
- fields;
- sorting;
- grouping;
- totals;
- exports;
- audit controls.
- Locate the corresponding Tradon/Tryton implementation with
rg:ir.action.report;ir.action.act_window;context_model;- report model names;
Reportclasses;ModelSQL.table_query();- XML views;
.fodttemplates.
- Map parameters and filters.
- Map sorting, grouping, and balance logic.
- Map output columns field by field.
- Compare calculation rules:
- debit/credit sign convention;
- opening balance;
- closing balance;
- running balance;
- transaction currency;
- base currency;
- posted/draft behavior.
- Compare export behavior:
- UI view;
- PDF/ODT;
- CSV;
- XLSX;
- audit-ready flat extract.
- Compare controls and reconciliation expectations.
- Record open questions separately from confirmed gaps.
Gap Classification
Use these labels consistently:
Covered: current Tradon/Tryton behavior matches the target.Partial: current behavior exists but is incomplete or presented differently.Gap: target behavior is missing.Different model: both systems answer a similar need with different concepts.Open question: source evidence is not enough yet.
For priority, use:
High: blocks audit, statutory reporting, reconciliation, or standard export.Medium: important reporting difference, but workaround exists.Low: presentation or convenience difference.Trade-specific: related topurchase_tradeor commodity business rules.
Output File Template
Create one file per report:
notes/accounting/<report_name>_gap_analysis.md
Recommended sections:
- Executive summary.
- Sources read.
- Target report requirements.
- Current Tradon/Tryton behavior.
- Parameter and filter gaps.
- Sorting and grouping gaps.
- Column mapping.
- Calculation and currency gaps.
- Export and audit gaps.
- Controls and reconciliation gaps.
- Prioritized gaps.
- Open questions.
General Ledger Lessons Learned
For the first General Ledger comparison:
- Tryton exposes an account summary with drill-down lines, while the target standard expects a flat audit/export report.
- Tryton has date, period, fiscal year, company, posted, and journal filters, but the target also requires explicit account range, currency, entity, document, and voucher filters.
- Tryton carries second currency as
amount_second_currency, but the target requires debit, credit, and balance in transaction currency plus base currency. - Tryton computes running balance by account, with optional party cumulation, while the target requires account plus transaction currency grouping.
- The target expects opening and closing rows per account plus transaction currency.
- Audit metadata and export-oriented columns must be normalized explicitly.
Maintenance Rule
After completing each report comparison:
- Add the new analysis file to
notes/accounting/README.md. - Add any reusable checklist item to
comparison_checklist.md. - Keep report-specific conclusions in the report gap file, not in
AGENTS.md. - Keep
AGENTS.mdpointing only to the accounting index and workflow.