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.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
0
พ.ย. 25
|
38 | ||
|
|
0
พ.ย. 25
|
4 | ||
|
|
0
พ.ย. 25
|
2 | ||
|
|
1
พ.ย. 25
|
152 | ||
|
|
0
พ.ย. 25
|
2 |