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
    • Approvals
    • 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
    • Estate 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

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
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

Prevent Odoo from deleting (recreating) existing variants when a new attribute is added.

Subscribe

Get notified when there's activity on this post

This question has been flagged
productdeletevariantsattributes
2 Replies
3833 Views
Avatar
Amir

It looks like when a new attribute is added to a product that has some variants, Odoo may WIPE OUT all existing variants and recreate them!

This means all inventory data, relation to any BOM, etc. are deleted for good!

It happens when Odoo can not figure out what should happen to existing variants when a new attribute is added and AT THE SAME TIME user is providing more than one value for the new attribute. This only happens if the new attribute's setting for "Variant Creation Mode" is set to "Instantly" which is the default setting by the way and something that can not be changed later.

Wiping out data without warning can lead to unexpected loss of data. Is there a way to stop Odoo from deleting and issue an error instead? or at least issue warnings when this is about to happen ?


I just confirmed this also the case in Odoo 17.0

1
Avatar
Discard
Amir
Author

Experimenting more with adding/deleting attributes from a product I found out Odoo actually unlinks existing variants from the product instead of deleting them as initially indicated in my post. It archives them. They stay in sale orders where they were used.

This is still not good we end up with duplicates and all reports will show the old archived variants and the one Odoo created in their place show up as separate products.

Chris TRINGHAM

Yes, it's not ideal. The "old" variants are archived, as you say, and you would have to do an inventory adjustment to put any stock back to the "new" variant. The archived variants cannot be selected on sales orders (etc.) but it can certainly cause confusion. https://odootricks.tips/using-variants-colour-size-fit/

Rupesh Dalvi

Facing the same problem. Any solution?

Paul K

I’m running into this issue with Odoo 19. We have a product with multiple attributes, and if I let Odoo create variants “Instantly”, it generates all 144 possible combinations. In reality, we only sell about 25 of those, and building a complex set of exclusion rules is overwhelming and still might not cover every case.

I looked at the idea of archiving the invalid combinations, but any change to the attributes wipes out that work. Not ideal.

I also tried switching all attribute creation modes to “Never”, hoping I could bypass Odoo’s automatic variant creation and manually create or import only the variants we actually sell. The problem is that Odoo simply won’t let you do that. With creation mode set to “Never”, you can’t manually create variants and you can’t import them either. It seems like Odoo insists on being the only one allowed to create variants.

I’ve spent most of the week trying to find a workable approach that lets us take advantage of the variant and attribute system, especially since the Product Configurator on the Sales side is excellent. But this all or nothing variant creation model is proving to be a real blocker. It feels like a significant oversight in the system.

Chris TRINGHAM

This seems like a different issue.

"Never" is for a feature or option of a product that is recorded on the sales orders but you don't hold specific inventory for it.

Seems like what you want is for Odoo to create variants "dynamically". It probably doesn't do everything you want, but it's the closest.

Paul K

I don't want Odoo to create variants for me at all.  I want to manage them myself.  If I allow "Dynamically", there is no way for the Product Configurator to know that certain combinations aren't available, as if I assume correctly, it will try to create them in that moment.

I'd just like to be able to create or import the variant configurations myself.  It just seems that in this case Odoo is "so close", but the feature is just missing one link.

I suppose I could just skip the variants feature all together, and create each variant manually as a product/template but that means that I need to assign the same BOM to multiple products.

Chris TRINGHAM

You can define an attribute as "dynamically" and block some variants, so that they will not be selectable and won't be created. It's explained here: https://www.odoo.com/documentation/19.0/applications/sales/sales/products_prices/products/variants.html#configure-variants

Avatar
barkerxavierr
Best Answer

The "old" variants are archived, and you will have to do a push back of inventory to the "new" variant. Archived variants cannot be picked up on sales orders (etc) but can certainly be confusing. 

0
Avatar
Discard
Avatar
Yura Pylypchuk
Best Answer

Hey, can you confirm if the same issue still remains after you've posted it 7 month ago? I can't recreate this. 

Kinds regards, 

Yura

0
Avatar
Discard
Mizanur Rahman

Yes, Same issue still persist. just create a product a with variant then purchase a variant of the product. then remove some used/unused variant. you will lose the on hand quantity. Though PO and WH/IN shows but its for archieved product.
Don't know how to solve this.

Chris TRINGHAM

You need to report this to Odoo. It would be a major change, but maybe if enough people report it to them they might address it in a future release.

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
Product Package options and Product Variants
product variants attributes packages
Avatar
Avatar
1
Mar 25
5595
Odoo V18 Import Issue: Product Variants with Attributes Causing Errors
product values variants attributes
Avatar
Avatar
2
Jan 25
2523
will OCA Modules product_attributes & product_variant become obsolete for v8?
v8 product variants attributes
Avatar
0
Mar 15
4276
Convertir productos existentes en variantes
product variants
Avatar
Avatar
2
Nov 24
2163
Generating Product Data Sheet (pdf) possible?
product attributes
Avatar
Avatar
1
Aug 25
3882
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 ภาษาไทย 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