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

Format decimal number

Subscribe

Get notified when there's activity on this post

This question has been flagged
6 Replies
49564 Views
Avatar
Vu Huynh

Hi all,

I'm using Odoo 10 with Purchase module. How can I customize the format of decimal number?

E.g: the Unit Price and Total, Sub Total... The current number format is 27,000.00, I want to change it to 27,000

Does anyone has experience with this?

0
Avatar
Discard
Avatar
Vu Huynh
Author Best Answer

hi  Jainesh Shah,

I tried set the Product Price decimal digits to 0, but only affect to Unit Price, the Total and Subtotal still have decimal digits.


1
Avatar
Discard
Avatar
Mostafa Razavi
Best Answer

If you want to remove decimal in product you can do by set zero in decimal accuracy from Settings -> Technical -> Database Structure -> Decimal Accuracy

if you want to remove zero in total and subtotal you have to set decimal places in your currency by the some hack in database table res_currency, you have to change column decimal_places to zero.

1
Avatar
Discard
Avatar
Maria Bleta
Best Answer

Hi everyone! I am having a similar issue. Would it be possible to change this but on the Inventory and Manufacturing modules?
I work with products that will always be integers, but those two modules always show units as 5.00
I want it to be displayed as 5

From your answers above, I have tried changing the Settings -> Technical -> Database Structure -> Decimal Accuracy, and in particular the Product unit of measure to 0 decimals.
An error message appears saying "You are setting a Decimal Accuracy less precise than the UOMs".

Any ideas on how to change it?

Thank you a lot in advance! 

0
Avatar
Discard
Avatar
Haresh Kansara
Best Answer

Hello Odooers,

I think if you are dealing with Monetary fields, then you dont need any code change, only need to set proper

"Decimal Places" in currency settings.

Steps to change Subtotal fields (Monetary) decimal accuracy from 2 digit to 3 digits:

1. Activate Multi Currency from General Settings (Settings > General Settings > Accounting ('Invoicing' If Community)), Now activate Multi-Currencies from Currencies section.

2. Now go to Accounting ('Invoicing' If Community) > Configuration > Accounting > Currencies.

3. In currency form change value 0.010000 to 0.001000 in Rounding Factor field and save record.

I hope this will helpful.

--
Regards
Haresh Kansara
Odoo Application Engineer
  


0
Avatar
Discard
Robinson Gutierrez

hello.
I have a reverse case, I have the decimals like this
300,000 = which are displayed with the currency 0.001000
but the problem is that I want to return to the previous one but it is not possible.

300.00 = I need this 0.010000.

I was trying through the qweb document but the currency sign disappears and the igv could not locate it.

Do you have any clue about the solution?

Avatar
Jainesh Shah(Aktiv Software)
Best Answer

Hi Vu,

The answer of Niyas is perfect once you will change the product price digits. for the subtotal and unit price go to the price list and Open the currency and change the rounding factor which will affect in unit and subtotal.


Thanks.

0
Avatar
Discard
Vu Huynh
Author

Thanks

Vu Huynh
Author

Hi Jainesh,

Thanks for your reply.

But there is another place where the decimal value still show is the sum of list view.

I set the rounding factor of currency to 0, the purchase order line show correctly. But in sum of list purchase order, it still contains the decimal value (.00).

How can I remove it?

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

To adjust the decimal points , activate the developer mode and navigate to Settings -> Technical -> Database Structure -> Decimal Accuracy.

Adjust the number of decimal point from here.


Have a look at this link also : https://www.odoo.com/forum/help-1/question/sale-order-total-amount-to-three-decimal-places-116978

Thanks

0
Avatar
Discard
Vu Huynh
Author

Hi,

Yes, I can change the Product Price, but how can I change the format of "Total" or "Sub Total"? It still have 2 digits for decimal

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
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