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

Tax_id field many2many

Subscribe

Get notified when there's activity on this post

This question has been flagged
developmentproductmany2manystudio
4 Replies
1367 Views
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
Discard
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
Author

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
Discard
passionfruit, Ingrid Revenu
Author

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
Discard
Avatar
Jose
Best Answer

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

-1
Avatar
Discard
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
Discard
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
What is the best practice of using Odoo Studio? Solved
development studio
Avatar
Avatar
Avatar
2
Oct 25
2436
Obtener edad desde fecha de nacimiento / Get age from date of birth Solved
development studio V18.1
Avatar
Avatar
2
Mar 25
2615
How to add Text field from products onto Quote/Sales PDF Solved
sales product studio
Avatar
Avatar
Avatar
Avatar
3
Jul 24
5905
Copy Many2Many from Parent to Child Many2Many field Solved
many2many studio server_actions
Avatar
1
Jul 23
8458
How to use self.env.cr.execute get my data? Solved
development many2many sql
Avatar
Avatar
Avatar
2
Dec 23
33784
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