Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Calculating values ​​for custom reports in Odoo 18

Subscribe

Get notified when there's activity on this post

This question has been flagged
customerreportingAccountodoo18
1 Reply
3433 Views
Avatar
RGonzalez

Hello everyone, I hope you're all doing well. I have a question about customizing accounting reports, and I wanted to see if you could help me with this. I'm customizing the General Ledger report.

We've custom-defined a special debit and a special credit in the invoice template so we can track each accounting entry. The problem I'm having is that despite adding a new column with the field I want to reference, no value appears in the report.

I thought it was due to something special in the field, and just to validate, I entered the amount (native value of the model) to see if it was visible in the view, but I can't see this field in the report either. 

I don't know if I'm configuring something wrong, but I have no idea where the error could be, because if I edit the date value, for something else like the expiration date. 

It updates without any problems. I would appreciate help identifying the detail I'm not taking into account, because it seems to be a configuration issue with the report and the calculation field.


0
Avatar
Discard
Avatar
Econ Odoo
Best Answer

This is only my good intention of helping you by sharing something in my memory which may not be accurate. When I study this ledger report, I remember that Odoo would get teh categories firsst, (the one in bold) and then for each of them, will go and calculate the line details. So maybe adding a column is only half of the job,you need to inherit the line detail calculation for the data to show.

0
Avatar
Discard
RGonzalez
Author

Hello, thank you very much for your quick response.

I had thought about it before, however, this report is native to Odoo and comes without established lines, which seemed strange to me from what you told me, but after analyzing more in depth, I think I have found a way to follow.

It turns out that if you have lines created but they are not visible, and you can see these lines, it is in the base code.

From there I realized that the report is more complex than what is seen in the interface, and I think that is why it does not take my modifications into account. Apart from the fact that I must include the columns and lines in the same way as in the base code, they use a custom function to consult and group the information to be consulted, and looking at the select, I see that it clearly does not consult the information that I need, and this is where my dilemma would lie.

What I think we will have to do is create a new report inheriting from the original, and from another view consult the information of each report. This to simplify the implementation of the new logic.

However, I appreciate any other comments or recommendations that can help me with this requirement.

Zahra Naveed

@RGonzalez
Hi, I am doing something similar and used the same approach that you used, which is to do it from the front end. However, I realised early on that it needed to be done from the backend because Odoo 18 has a dynamic reporting system, and it does need to expose the field from the backend. i am able to add the field in the GL and its value now im stuck on the part of how to get the sum of it like the debit and credit field show on the account level and then total sum.
if you know or have done this, please can you share something on it.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to add a new column in the General ledger?
accounting reporting generalledger odoo18
Avatar
0
Jun 25
136
Send Partner ledger to Customer Directly from the Partner Ledger Reporting window
email customer reporting ledger
Avatar
Avatar
1
Aug 23
2903
Customer Invoice Amount Issue with Specific Analytic Account
sales invoice customer reporting reports
Avatar
0
Apr 24
2367
Odoo18 - How to select Email Templates when sending multiple invoices
odoo18
Avatar
Avatar
1
Nov 25
1762
Product label with QR code
reporting
Avatar
Avatar
1
Nov 25
358
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now