Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
6 Odgovori
9797 Prikazi
Avatar
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
Avatar
Opusti
Avatar
Pinakin Nayi (pna)
Best Answer

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
Avatar
Opusti
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.

Avatar
Xavier Brochard
Best Answer

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
Avatar
Opusti
Avatar
Parth Patel (pat)
Best Answer

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
Avatar
Opusti
Avatar
Pujara Geet
Best Answer

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
Avatar
Opusti
Avatar
Thomas
Avtor Best Answer

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

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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