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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
نوفمبر 25
|
38 | ||
|
|
0
نوفمبر 25
|
4 | ||
|
|
0
نوفمبر 25
|
2 | ||
|
|
1
نوفمبر 25
|
153 | ||
|
|
0
نوفمبر 25
|
2 |