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
- Contabilidad
- Inventario
- PoS
- Proyecto
- MRP
Se marcó esta pregunta
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
0
nov 25
|
3 | ||
|
|
0
nov 25
|
38 | ||
|
|
0
nov 25
|
4 | ||
|
|
1
nov 25
|
159 | ||
|
|
0
nov 25
|
2 |