Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
233 Zobrazení

Hello,

I am trying to manage my wine business with Oddo, but I am unable to import my inventory due to attributes.


I have imported attributes such as

Attribute

Display Type

Variant Creation Mode

Values/Value

Type

Select

Instantly

Champagne




Pétillant




Spiritueux




Vin

or

Attribute

Display Type

Variant Creation Mode

Values/Value

Couleur

Select

Instantly

Spiritueux




Vin Blanc




Vin Rosé




Vin Pétillant




Vin Rouge

and everything seems alright

(image of my odoo's product attribute I'm not allowed to post)


But I can't figure out why I cannot import my products.

I've read the doc which says to name the column as the Attribute's name:

Type

Couleur

Nom

Spiritueux

Spiritueux

Produit A

Spiritueux

Spiritueux

Produit B

Vin

Vin Rouge

Produit C

Vin

Vin Rouge

Produit D

Vin

Vin Rouge

Produit E

Vin

Vin Rouge

Produit F

Vin

Vin Blanc

Produit G

Vin

Vin Blanc

Produit H

Vin

Vin Rosé

Produit I

Vin

Vin Blanc

Produit J

Vin

Vin Blanc

Produit K

Vin

Vin Rouge

Produit L

Vin

Vin Blanc

Produit M

Vin

Vin Rouge

Produit N

Vin

Vin Rosé

Produit O

Vin

Vin Blanc

Produit P

Vin

Vin Blanc

Produit Q

Vin

Vin Blanc

Produit R

Vin

Vin Rouge

Produit S

Vin

Vin Rouge

Produit T

Vin

Vin Blanc

Produit U

Vin

Vin Blanc

Produit V

Vin

Vin Rouge

Produit W

Vin

Vin Blanc

Produit X

Vin

Vin Blanc

Produit Y

Vin

Vin Rosé

Produit Z

But I failed to import.

I tried with the simple Attribute field and gets the import error “Aucun enregistrement correspondant trouvé pour le nom suivant dans le champ Attributs de produits:

  • Spiritueux à plusieurs lignes
  • Vin à plusieurs lignes” 

I tried with its values and get the import error “Plusieurs résultats ont été trouvés pour la valeur "Spiritueux" dans le champ "Attributs de produits" (2 résultats) à plusieurs lignes”.

I also tried to prefix my values with the Attribute name (Couleur: Spiritueux, Couleur: Vin Rosé, etc…) but nothing works. I can't figure out why I cannot import my products.


Can you please tell me what I'm doing wrong?

Avatar
Zrušit
Autor Nejlepší odpověď

Hello,


Thank you for your replies, but I must be very stupid: I still can't do it.


I designed a script that parses my inventory Excel file and replaces the value with the external IDs from the attribute exports (which themselves come from the same inventory Excel file, by the way).


After two days of back and forth, I finally got a comprehensive Excel file (but unreadable, __export__.product_attribute_value_1402_27c8a33f), and when I import it, I still get errors.


For my Color field, for example, when importing, if I select an Odoo field of type “Product attributes,” I get the error


Aucun enregistrement correspondant trouvé pour le nom suivant dans le champ Attributs de produits:
    __export__.product_attribute_value_8399_112a2070 à plusieurs lignes
    __export__.product_attribute_value_8400_4a852600 à plusieurs lignes
    __export__.product_attribute_value_8397_de440c64 à plusieurs lignes

Si je tente avec le type “Attributs de produits / Attribut / ID externe”, j'obtiens l'erreur


Aucun enregistrement correspondant trouvé pour le nom suivant dans le champ Attributs de produits / Attribut / ID externe:

    __export__.product_attribute_value_8451_f8601cd6 à plusieurs lignes
    __export__.product_attribute_value_8455_7c6b3623 à plusieurs lignes
    __export__.product_attribute_value_8452_59a66be6 à plusieurs lignes

If, on the other hand, I try with the Product Attributes / External ID type there, I get the error

Valeur requise manquante pour le champ 'attribute_id' sur un modèle lié [product_template_attribute_line] à plusieurs lignes


What a pain! I refuse to believe that it's so complicated to import data into Odoo, and I still think I'm missing something, but I don't know what. I've read all the links you provided, but none of them help me import correctly.

Please help

Avatar
Zrušit
Nejlepší odpověď

Hi  Laurent G,

I think this video can help you:


https://www.youtube.com/watch?v=VyhwkhnwIck&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=6

Avatar
Zrušit
Nejlepší odpověď

Hello Laurent,

Please use the external ID of the attribute for better accuracy and easier handling.

Thanks,
info@creyox.com

Avatar
Zrušit