Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • E-learning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Artificiële Intelligentie
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelwinkel
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Horeca & Hospitality
    • Bar en café
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van mede-eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brouwerij
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Diensten
    • Klusjesman
    • IT-hardware & ondersteuning
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Alle bedrijfstakken bekijken
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijsprogramma
    • Scale Up! Business Game
    • Odoo bezoeken
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Partner worden
    • Diensten voor partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Tax_id field many2many

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
developmentproductmany2manystudio
4 Antwoorden
1368 Weergaven
Avatar
passionfruit, Ingrid Revenu

Hello, I am new here and trying to customise a product sheet on Odoo online, however I am running into an issue to extract the price without tax as my main price is tax included. 

I am unable to find a way to extract either the price without tax, either the tax rate (taxes_id) as it is not a float but a many2many field, anyone could help me ? 


The idea behind is that I added a extra field with ooo studio and need to calculate the value of the field using the price without tax.


Thanks

2
Avatar
Annuleer
CandidRoot Solutions

In Odoo Online, the product form does not store a “price without tax”.
Even if your sale price is tax-included, Odoo calculates the untaxed value only on documents like Quotations, Sales Orders, and Invoices (Subtotal / Untaxed Amount).

That’s why you won’t find an untaxed price field on the product page.
Showing it there would require backend customization, which is not possible on Odoo Online (SAAS) But Yes, this requirement can be handled on Odoo.sh or On-Premise.
We can add a small backend customization that uses Odoo’s tax engine to calculate the price without tax correctly, even when the product price is tax-included and multiple taxes are applied.

passionfruit, Ingrid Revenu
Auteur

Thank you for your answer, I am not looking to have multiple tax id, I am only looking for a way to extract the tax % of the product, so I can use it for a calculation. Do you know how I could extract the tax % out of the product page ? 

Thank you in advance

Avatar
CandidRoot Solutions
Beste antwoord

Hello Ingrid,

This is expected behavior in Odoo Online, especially when working with tax-included prices and Odoo Studio.

In Odoo, product taxes are stored in the taxes_id field, which is a many2many field because multiple taxes can apply to a single product. The actual tax computation (including extracting price without tax) is handled by Odoo’s internal tax engine using server-side Python logic (compute_all).

However, Odoo Studio formulas do not support iterating over many2many fields or applying tax engine logic. Because of this limitation:

  • You cannot reliably calculate price excluding tax in Studio when the product price is tax-included.

  • Accessing the tax rate directly from taxes_id for calculation is not possible in Studio.

Available approaches:
  1. Use Odoo’s standard untaxed values

    Odoo already calculates untaxed amounts correctly on documents like quotations, sales orders, and reports.

  2. Single fixed tax workaround (limited use case)

    If only one fixed tax is always applied, you may use a manual formula (e.g. price / 1.18).

    Please note this is only an approximation and not recommended for flexible or multi-tax scenarios.

  3. Recommended (accurate) solution

    A proper and scalable solution requires a small server-side Python customization using Odoo’s tax computation methods. This is only possible on Odoo.sh or On-Premise, not on Odoo Online.

So this is not a bug, but a functional limitation of Odoo Studio in Odoo Online.

If you would like help implementing a robust solution or exploring alternative approaches, CandidRoot would be happy to assist.

 If this solution helped you, kindly upvote this answer.

Best regards,


CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Whatapp: (+91) 8849036209

Email: info@candidroot.com
Web: https://www.candidroot.com

3
Avatar
Annuleer
passionfruit, Ingrid Revenu
Auteur

Thanks, do you know how I can have the untaxed value as you mentioned in option 1 ? As my product price is tax included, I cannot find a field without tax on the product page. Thanks in advance

Avatar
Chris TRINGHAM
Beste antwoord

Maybe I'm missing something here, but you can extract the tax percentage from the sales tax (and the tax string)


0
Avatar
Annuleer
Avatar
Jose
Beste antwoord

Use the unit price field (price_unit) to obtain the sales price without added taxes.

-1
Avatar
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

In Odoo, the built-in Tax ID field is a single value field on the partner model, not a many2many field. That means Odoo lets you store only one Tax/VAT number per contact by default.

If you need to associate multiple tax identifiers with a partner, you must model it differently:

    Create a custom model to store tax ID records.

    Add a many2many or one2many field on the partner pointing to that model.

    In that custom model, include fields such as Tax Type, Country, and Tax Number.

This way, the partner can hold multiple tax identifiers.

Odoo doesn’t provide a many2many tax ID field by default, so extending the model with a custom related table is the standard way to handle it.


Hope it helps

-2
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
What is the best practice of using Odoo Studio? Opgelost
development studio
Avatar
Avatar
Avatar
2
okt. 25
2436
Obtener edad desde fecha de nacimiento / Get age from date of birth Opgelost
development studio V18.1
Avatar
Avatar
2
mrt. 25
2615
How to add Text field from products onto Quote/Sales PDF Opgelost
sales product studio
Avatar
Avatar
Avatar
Avatar
3
jul. 24
5905
Copy Many2Many from Parent to Child Many2Many field Opgelost
many2many studio server_actions
Avatar
1
jul. 23
8458
How to use self.env.cr.execute get my data? Opgelost
development many2many sql
Avatar
Avatar
Avatar
2
dec. 23
33784
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Partner worden
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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