Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How to add one product with a lot of attributes and values

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
6 Răspunsuri
9793 Vizualizări
Imagine profil
Thomas

Hi,

I'm trying to add products to my shop. I need to add products which have a lot of variants.

Here is an example of a product I need to import : https://drive.google.com/open?id=1TaQ7U1mVcXg3Ug2LgoBXZSLfA8NRsEdg

Is it too long? Why Odoo doesn't want to import this file?
I get a message of memory or odoo doesn't simply do the import.

Thanks a lot,

Thomas.

0
Imagine profil
Abandonează
Imagine profil
Pinakin Nayi (pna)
Cel mai bun răspuns

Hi,

To avoid memory issue, you can create your own import python script which will do import for you.(BTW if you search over google you can get readymade :P)

3
Imagine profil
Abandonează
Yenthe Van Ginneken (Mainframe Monkey)

Memory issues + the fact that making a Python import script will be a lot easier and robuster than the CSV imports. Columns tend to mess up in imports while that is not the case with a Python script.

Imagine profil
Xavier Brochard
Cel mai bun răspuns

Part of memory issues might comes from web server or from a slow Odoo because of lack of workers setup.

Did you read the docs about deploying Odoo ?

If you still have problems, you can decrease the cpu and memory load this way :

In you current import, Odoo creates products and missing attributes on the fly and find the others using their name. You could import things in 3 steps :

  1. import products without attributes

  2. import attributes only

  3. export products name (you will get ID and name), attribute name ( you will get ID and name) and update your sheet with IDs for products and attributes. With a database or the OpenRefine tool this is quickly done.


1
Imagine profil
Abandonează
Imagine profil
Parth Patel (pat)
Cel mai bun răspuns

Hello BeWheels,

Here are the community modules which might help you out.
You can easily create variants using this : 

https://www.odoo.com/apps/modules/10.0/product_configurator/

https://www.odoo.com/apps/modules/10.0/website_product_configurator/


Hope this helps you!
Regards,
Parth

0
Imagine profil
Abandonează
Imagine profil
Pujara Geet
Cel mai bun răspuns

Hello,


If You Want To import Product With Its Attributes First, You have to Import Product After That You Can Add one Button on Product e.g" Import Variants ".

Code Hint:

class ProductWizard(models.TransientModel):

    _name = 'product.varient'

    Product_file = fields.Binary(string="Select File")

    @api.multi

    def import_account_move_lines(self):

        keys = ['']# Use Field Here Which You want to import

        data = base64.b64decode(self.account_file)

        file_input = cStringIO.StringIO(data)

        file_input.seek(0)

        reader_info = []

        reader = csv.reader(file_input, delimiter=',')

        try:

            reader_info.extend(reader)

        except Exception:

            raise exceptions.Warning(_("Not a Valid File!"))

        values = {}

        for i in range(len(reader_info)):

            field = map(str, reader_info[i])

            values = dict(zip(keys, field))

            if values:

                if values['Account'] == 'Account':

                    continue

                res=self.create_move_lines(values)


    @api.multi

    def create_variant_lines(self,values):

        example_field_id=self.env[''].browse(self._context.get('active_id'))# Object name here self.env['']

        example_field = values.get('')#field

        example_field = values.get('')#field

        lines = move_lines.create({

                            #Your code of Create

        })


Thanks

0
Imagine profil
Abandonează
Imagine profil
Thomas
Autor Cel mai bun răspuns

 Thanks for your answers. But write a python script seems a lot too difficult for me. Are there tutorials?
Thanks. 

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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