Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Tax_id field many2many

Subscriure's

Get notified when there's activity on this post

This question has been flagged
developmentproductmany2manystudio
4 Respostes
1365 Vistes
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
Descartar
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
Autor

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

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
Descartar
passionfruit, Ingrid Revenu
Autor

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

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


0
Avatar
Descartar
Avatar
Jose
Best Answer

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

-1
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
What is the best practice of using Odoo Studio? Solved
development studio
Avatar
Avatar
Avatar
2
d’oct. 25
2434
Obtener edad desde fecha de nacimiento / Get age from date of birth Solved
development studio V18.1
Avatar
Avatar
2
de març 25
2614
How to add Text field from products onto Quote/Sales PDF Solved
sales product studio
Avatar
Avatar
Avatar
Avatar
3
de jul. 24
5903
Copy Many2Many from Parent to Child Many2Many field Solved
many2many studio server_actions
Avatar
1
de jul. 23
8455
How to use self.env.cr.execute get my data? Solved
development many2many sql
Avatar
Avatar
Avatar
2
de des. 23
33780
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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