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
    • Artificial Intelligence
    • 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
    • Property 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
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

UOM Margin Bug in when confirming Quotation to SO

Subscribe

Get notified when there's activity on this post

This question has been flagged
salesaccountingfinance
1 Reply
1472 Views
Avatar
Nelson Yip

When creating a Quotation with UOM of 48CS (48 Units) the margins is correct

CGA001-BK - $3.00 (sales $) / $1.00 (cost $)

1 48CS - $144.00 (48 * $3.00)

Margin = $96.00 ($144 - $48 = $96) which is correct in the Quotation.

When you confirm it to an SO (2nd Attachment)

The UoM did not carry over correctly and affects the SO price and the Financial Balance Sheet / Profit and Loss Statements.

The Margin is now $143.00 which is incorrect.

I think the math is [Unit Price - (Cost Price * UoM)]

$144.00 - ( $1 * 1 Unit) = $143.00

I believe it is taking the DEFAULT UOM and not the actual UOM of the QUOTE to make this calculation.  This is a serious bug and need to corrected as soon as possible.


-1
Avatar
Discard
Cybrosys Techno Solutions Pvt.Ltd

Hi,


The issue you described is a known Odoo bug related to margin calculation when using a sales UoM that is a multiple of the base UoM (such as 48CS = 48 units). Odoo correctly computes the margin on the quotation, multiplying both the sales price and cost by the UoM quantity. However, when the quotation is confirmed into a Sales Order, Odoo recalculates the margin using only the base UoM cost (1 unit), ignoring the sales UoM multiplier. This causes the Sales Order margin to be inflated and incorrect, which then affects accounting reports like Profit & Loss and COGS.


This is not a configuration problem but a functional bug present across several Odoo versions. The fix requires either an official Odoo patch or a custom override to ensure the margin formula multiplies cost × UoM quantity. Workarounds include computing margin only on the quotation, adding a custom calculated field that applies the correct formula, or reporting the issue directly to Odoo Support for a proper fix.


Hope it helps

Odoobot

Notice: The information provided in this e-mail is confidential and is for the sole use of the intended recipient. Any review, reliance, dissemination or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail or telephone, delete this message and destroy all copies of the message immediately. Thank you in advance for your cooperation.
Nelson Yip
Author

If this is a known bug how come Odoo has not fix this as this is a big issue.  Seems like an easy fix, I guess Odoo is not ready for mainstream yet.

Chris TRINGHAM

Hi @Cybrosys Techno Solutions Pvt.Ltd - how does an incorrect margin calculation on a sales order affect COGS or the Profit & Loss? That really would be a serious problem.

ensaladadefrutaco, Santiago Amengual
I'm having the same problem, how can I fix it?


Odoobot

You have to change the Inventory Valuation Costing Method to Standard.

 

FIFO / AVCO causes this issue.

 

Best Regards,

 

Nelson Yip

 

HSE USA, LLC

5832 E 61st Street

Commerce, CA 90040

P: 323-278-0888 x2122

F: 323-278-0999

nelson.yip@hseusa.com

https://www.hseusa.com

 

 

From: Santiago Amengual <notifications@mail.odoo.com>
Sent: Friday, November 21, 2025 6:26 PM
To: Nelson Yip <nelson.yip@hseusa.com>
Subject: UOM Margin Bug in when confirming Quotation to SO

 

CAUTION: This E-mail originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

I'm having the same problem, how can I fix it? ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​

View Forum Post

  

UOM Margin Bug in when confirming Quotation to SO


I'm having the same problem, how can I fix it?

 

--

Santiago Amengual

Notice: The information provided in this e-mail is confidential and is for the sole use of the intended recipient. Any review, reliance, dissemination or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail or telephone, delete this message and destroy all copies of the message immediately. Thank you in advance for your cooperation.
ensaladadefrutaco, Santiago Amengual

That doesn't work; it also doesn't show the standard cost at the point of sale when I leave the price as standard. Are there any other suggestions for fixing this?

Avatar
Alana Marie Zaki (alma)
Best Answer

Hello Nelson Yip and Cybrosys. I’ve just replicated your configuration on my end, and everything appears to be working as expected in Odoo 19. Please see the details below:



All the best,


AZ


1
Avatar
Discard
Nelson Yip
Author

HI Alana,
What version are you running?

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
Reset my inventory, Sales, Purchasing and accounting database
purchase sales accounting finance
Avatar
Avatar
1
Dec 25
4301
Subscription product (first month free)
sales accounting finance service
Avatar
0
Mar 25
1853
How to charge late payment fees on invoices ?
sales accounting finance v7
Avatar
Avatar
Avatar
6
Oct 19
11166
Cuenta De Cliente
accounting finance
Avatar
Avatar
Avatar
3
Mar 26
1218
feature request: Structured E-Invoicing (XRechnung / ZUGFeRD / EN 16931) in Odoo Online Free Plan
sales accounting
Avatar
Avatar
1
Feb 26
1711
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 Svenska ภาษาไทย 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