Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Calculation errors on Margin and "Excluding Taxes" total in a sales order

Odoberať

Get notified when there's activity on this post

This question has been flagged
1 Odpoveď
327 Zobrazenia
Avatar
Amine Zaghdoudi

Hello everyone,

I am facing a calculation and display issue on my sales orders that seems to be an internal error. For a correctly configured product (with a defined sales price and cost), the displayed values are inconsistent.

Problem Descriptions:

  1. Incorrect Margin Calculation:
    • Total sales price for the line: 20.00 DT (5 units x 4.00 DT/unit)
    • Total cost for the line: 17.85 DT
    • Expected Margin: 20.00 DT - 17.85 DT = 2.15 DT
    • Displayed Margin: -13.85 DT, which is clearly incorrect.
  2. Incorrect "Excluding Taxes" Total Display:
    • The "Hors taxes" field displays the unit price (4.00 DT) instead of the line total (20.00 DT). The correct total only appears in the "Toutes taxes..." field.

Additional Information:

  • Odoo Version: 
  • Modules: POS, Inevntory and Account
  • Screenshot: 

Have other users encountered this type of problem? If so, how did you solve it?

Thank you in advance for your help.

0
Avatar
Zrušiť
Amine Zaghdoudi
Autor

Hello Cybrosys,


I m using Odoo online 19 Entreprise Edition. i didnt customise anything on code

Chris TRINGHAM

Hi Amine - the so-called "Total cost" is actually the Unit Cost, so the margin calculation is correct. I agree that it is confusing / inconsistent, but I don't think it is "wrong", though you could report this to Odoo support.

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


Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


The issue with the incorrect margin calculation and wrong “Excluding Taxes” total on sales orders in Odoo is likely caused by either a customization error, a misconfigured field dependency, or an incorrect computation formula in your sale order line model or view. When the margin field displays -13.85 DT instead of 2.15 DT, it usually indicates that Odoo is using the wrong base (for example, subtracting cost from untaxed subtotal before taxes are correctly computed, or mixing up signed values).


For the “Hors taxes” (excluding tax) display issue, this often happens when the XML view or widget is showing price_unit instead of price_subtotal. The price_unit field always shows the per-unit price (4.00 DT), while price_subtotal holds the correct total for the line (20.00 DT). Checking and correcting the view to use t-field="line.price_subtotal" will fix the display problem.


To resolve the margin issue, review the compute method for the margin field (usually _compute_margin) or any overridden logic in custom modules. Ensure it’s calculated as margin = price_subtotal - purchase_price * product_uom_qty, and confirm both purchase_price and price_subtotal are correctly stored before computing. After correcting and updating the view and compute logic, your sales line should display the proper untaxed total and accurate profit margin.


Hope it helps

0
Avatar
Zrušiť
Chris TRINGHAM

Is this from AI / LLM?

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

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

Registrácia
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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