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
    • 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 Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and 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
  • 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

Product variant data update via data import

Abonare

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

Această întrebare a fost marcată
importproduct.product
3 Răspunsuri
631 Vizualizări
Imagine profil
Mikko

I'm trying to update product variant related data via import. However it seems that I cannot make any data updates via import. Even if I try to import just one line of data with ID and some simple data field (for example standard price), I always get "Unclassified error:  Information : <class 'IndexError'>: tuple index out of range at row 2". I have checked that the ID of the product I'm trying to update is in product.product database, as I have just prior exported it from the system.

If I just try to create a new product by importing a product name and standard price this does work.

Any thoughts how I could solve this? Any help is greatly appreciated.

0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,

The error you’re seeing happens because standard_price is a product template field, not a variant field, and Odoo doesn’t handle updates well when you try to import it through product.product (variants). That’s why creating new products works, but updating existing ones with just the internal database ID fails and throws the “tuple index out of range” error. The correct way is to export products from Products (product.template), include the “ID” or “External ID” along with the fields you want to update (like standard_price), and then re-import that file. If you really need to update variant-specific fields, you should work with Product Variants (product.product) but identify them using either External IDs or a combination of template and attribute values rather than relying on the raw database ID. This way, Odoo knows exactly which record to update and won’t throw errors.


Hope it helps.

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

I have tested with as simple dataset as follows:

id default_code standard_price
__export__.product_product_24721_e5cd5770 ALL-000089 7,80

I have made an export and tried to import the same data, but I encounter the same error every time.

0
Imagine profil
Abandonează
Imagine profil
Codesphere Tech
Cel mai bun răspuns

Can you please provide the details or sample sheet here?

0
Imagine profil
Abandonează
Martin Bando

Hello all,

I forgot the following in the manifest:

‘depends’: [ ‘account_followup’]

and in my module:

followup_reminder_type = fields.Selection(
selection_add=[],
default=‘manual’
)

Now it works properly. When I create a new contact, manual is selected by default.

Thanks for the help :)

Codesphere Tech

I've done the same thing and it is working properly in Odoo.

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
Related Posts Răspunsuri Vizualizări Activitate
How to import Product Variants images Rezolvat
import product.product SF-Experts
Imagine profil
Imagine profil
2
oct. 25
750
Issue with import and comma in Excel File (odoo 19)
import
Imagine profil
0
sept. 25
234
Importacion de Atributos y Valores
import
Imagine profil
Imagine profil
Imagine profil
2
mai 25
2193
Import from Winbooks Rezolvat
import
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
mai 25
6513
can i import journal entries from Excel
import
Imagine profil
Imagine profil
1
aug. 24
3325
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