Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    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 Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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 export External ID

Naroči se

Get notified when there's activity on this post

This question has been flagged
external_idExporting
2 Odgovori
5822 Prikazi
Avatar
Chris Harris

I'm using the hosted version of Odoo 17.

I manually entered a couple dozen products from a vendor then added pictures, set categories for Sales and POS, etc.

Now I received a full price list from the vendor (and I will be receiving updated pricelists every 6 months). 

I want to import the full price list without creating duplicate products. Reading through the docs, it seems the way to avoid creating duplicates is by using the External ID field. However, I have not found a way to export my current product list with the External ID.

How can I export my product list and include the External ID (as well as other fields that are not available in the column selector in the Products list view such as Ecommerce Shop/Categories)?

Perhaps an even better option would be if I could configure the import to prevent creating duplicate Internal Reference IDs. I already can't create a new product with the same Internal Reference in the UI, but Import doesn't enforce this constraint. Is it possible to configure Import to prevent duplicates?

0
Avatar
Opusti
Avatar
Shajahan
Best Answer

In Odoo, the External ID is mainly used for referencing records across different modules or between instances. It's not directly related to preventing duplicate products during import. However, to avoid creating duplicate products during import, you can use the Internal Reference field as a unique identifier.

Here's how you can export your product list with the Internal Reference field:

  1. Navigate to the Product listing in Odoo.
  2. Click on the "Export" button to export the product list.
  3. In the export wizard, select the fields you want to export, including the Internal Reference field.
  4. Export the data in a CSV or Excel file format.

Now, you have your product list exported with the Internal Reference field.

To configure the import to prevent creating duplicate Internal Reference IDs, you'll need to use a unique constraint on the Internal Reference field. Unfortunately, out-of-the-box, Odoo does not provide a direct option to enforce this constraint during the import process. However, you can achieve this through customization or by using a custom script to preprocess your data before import.

Here's an approach to enforce uniqueness during the import process:

  1. Before importing your price list, check the Internal Reference of each product in the price list against your existing product database.
  2. If a product with the same Internal Reference already exists, update the existing product with the new price information instead of creating a new product.
  3. If a product with a new Internal Reference is found, import it as a new product.

You can achieve this by writing a custom Python script that preprocesses your price list data before importing it into Odoo. This script would handle the logic to check for existing products and update them accordingly.

Additionally, you can explore Odoo's import options, such as the "Update existing records" option, which can update existing records based on a matching field. However, this option might not fully address your requirement since it updates records based on a specific field match, rather than enforcing uniqueness based on the Internal Reference field.

Customization or scripting may be necessary to achieve the exact behavior you're looking for. If you're not comfortable writing custom scripts, you might consider reaching out to an Odoo developer or consultant for assistance with this task.

1
Avatar
Opusti
Avatar
Chris Harris
Avtor Best Answer

@Shajahan

Thank you for your response!

Originally, I couldn't find a way to "Export All", but after watching one of the tutorial videos I noticed that I needed to select some records (or all records) and then a new menu appeared that has the "Export All" option. 

With that help and a few more hours of troubleshooting import errors, I have now successfully imported all of my new products.

Thank you very much!

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
Related Posts Odgovori Prikazi Aktivnost
What are mandatory export fields
Exporting
Avatar
Avatar
1
feb. 24
2518
Unable to Export Data v15 Solved
Exporting
Avatar
Avatar
2
jul. 23
4513
How i can find Product PopUp external ID?
external_id
Avatar
Avatar
Avatar
3
jul. 20
4528
How to hide export access only in Mobile PWA, and not in desktop.
Exporting odoo17
Avatar
0
avg. 24
1822
I want to export Purchase requisitions, goods received and master data. Which tables should I ask for?
Exporting naming
Avatar
0
jun. 24
1820
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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