In Odoo 18 Accounting Module's Reporting, I have a query on the 'Balance Sheet' report. Actually need to find which function calcultes the 'Balance Sheet' report that means where the numerical (additon, subtruction etc.) operations calculate in the codebase?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Apskaita
- Atsarga
- PoS
- Projektas
- MRP
This question has been flagged
Hi,
To find the functions calculating the Balance Sheet report in Odoo 18's Accounting module, start by identifying the report model using the debugger in developer mode (likely account.financial.report or similar). Then, locate this model in the Odoo codebase (typically in accounting/models).
Analyze the report model's methods (e.g., _get_lines, _get_report_values) to trace the calculations. These methods query account.move.line and account.account to retrieve data and perform addition, subtraction, etc., considering different account types. Use a code editor, the debugger, and Odoo's documentation to explore the code effectively. Remember that Odoo's accounting module is complex, and customizations or accounting standards may influence the calculations.
Hope it helps
The Balance Sheet numbers in Odoo 18 come from this method: account_reports.models.account_report.AccountReport._get_lines()
That’s where Odoo loops through report lines and does the math — adding, subtracting, filtering by ledger, etc.If you want to trace the actual numbers, drop some debug logs inside _get_lines() and check how options are used. Most of the heavy lifting happens there.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
|
0
lapkr. 25
|
3 | ||
|
|
0
lapkr. 25
|
38 | ||
|
|
0
lapkr. 25
|
4 | ||
|
|
0
lapkr. 25
|
2 | ||
|
|
1
lapkr. 25
|
158 |