Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

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

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
productdeletevariantsattributes
2 Respostas
3809 Visualizações
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
Cancelar
Amir
Autor

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
Melhor resposta

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
Cancelar
Avatar
Yura Pylypchuk
Melhor resposta

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
Cancelar
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.

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
Product Package options and Product Variants
product variants attributes packages
Avatar
Avatar
1
mar. 25
5590
Odoo V18 Import Issue: Product Variants with Attributes Causing Errors
product values variants attributes
Avatar
Avatar
2
jan. 25
2515
will OCA Modules product_attributes & product_variant become obsolete for v8?
v8 product variants attributes
Avatar
0
mar. 15
4263
Convertir productos existentes en variantes
product variants
Avatar
Avatar
2
nov. 24
2155
Generating Product Data Sheet (pdf) possible?
product attributes
Avatar
Avatar
1
ago. 25
3876
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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