Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Kecerdasan Buatan
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Product Internal Reference

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
2 Replies
4329 Tampilan
Avatar
Zoran

Can someone with experience provide reasoning as to why Odoo does Not enforce Product Internal Reference [default_code] as a compulsory field?


Businesses that deal with physical items use this field to uniquely identify it in their inventory. In manufacturing it is essential in all aspects when referencing parts.


There is nothing in the business layer of Odoo that will prevent creating numerous items (products) with the same name that cannot be distinguished from one another.


This to me seems like a critical oversight and any explanation would be greatly appreciated.

1
Avatar
Buang
faOtools

This app - https://apps.odoo.com/apps/modules/18.0/product_dynamic_code - might be a solution for this case. It lets you generate automatic codes based on any product field. Thus, internal references will not be empty and might be forced to be unique. If needed, it is possible always to switch to manual codes.

Zoran
Penulis

Thank you for your response. 

I am aware of the subset of customers that will not have this requirement and the reasoning for why Odoo may have not done this out of the box. On the other side of the coin you will have a lot of businesses that will have this requirement. They will effectively have to individually do this modification internally. I will have to agree with you that not everyone at Harvard or Oxford is a professor, but everyone has a student or employee ID :-)


 I am in the process of analysing the system and gathering as much information as possible so I can have the correct approach at the later stages of implementation.


The first advice I received from the very beginning was to try and keep things stock as much as possible in order to provide seamless upgrades in the future.


With this in mind my first approach was to do the change in the Base Properties of that Field, but this is not allowed for Base Fields, so it will need to be done in code.


This leads me to my main concern without deep diving into this aspect, how would future upgrades be affected by these types of customisations?

Zoran
Penulis

Thank you @faOtools, I will make a note of this. Is there any rating system that allows us to judge if a particular App is reliable?

faOtools

Odoo has a built-in rating system, although most apps do not yet have such ratings. For this specific app, you may request a demo database and test the features in a testing environment before purchasing.

Avatar
econodoo, Econ Odoo
Jawaban Terbai

My two cents: Odoo’s built for everyone—think Rick’s Café in Casablanca, Mooney’s bookshop in the You series, or Lili Bloom’s flower shop in It ends with us. Forcing a default_code on every product would drive those folks nuts—imagine them scratching their heads over unique codes they’d never use or remember. Plus, by default, those codes pop up right next to the product name, turning "Red Rose Bouquet" into "FLW001 - Red Rose Bouquet"—ugly, right? Not everyone at Harvard or Oxford is a professor, and not every Odoo user is a manufacturer running a hardcore ERP.

If you need that default_code to keep things tight, you can totally enforce it with a quick customization—Odoo’s got your back there. That’s not them missing the mark (oversight); it’s them giving you the smarts (insight) and the wiggle room (foresight) to make it your own.



This keeps it casual and human:



  • Fixed "in you" to "down the street" for clarity.

  • Softened the torture line to "drive those folks nuts" for a chattier feel.

  • Added a quick example of the ugly name combo to show, not just tell.

  • Smoothed the customization bit with "Odoo’s got your back" to sound less techy.

  • Landed the "insight, foresight, not oversight" riff naturally at the end.

What do you think—feels good, or want it even more laid-back?

2
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

Hi,


Odoo doesn’t enforce the Internal Reference (default_code) field as required or unique out of the box.


Many small retail shops, service-based companies, or businesses without complex inventory needs don’t require SKUs. Making default_code mandatory by default could confuse users who don’t maintain part numbering systems.


Odoo doesn’t assume how SKUs should be generated or formatted. Many users might prefer to use vendor part numbers, group-based sequences, or manual codes. To support that flexibility, Odoo leaves generation and enforcement up to the implementer.


If you do need default_code to be required or unique, there are solid options:


OCA Module


* https://odoo-community.org/shop/product-internal-reference-as-required-3926?search=product_code_mandatory#attr=941330


You can define server actions or extend models with Python constraints to prevent duplicates.


@api.constrains('default_code')

def _check_unique_sku(self):

    if self.default_code:

        duplicates = self.env['product.template'].search([('id','!=',self.id),

                                                         ('default_code','=',self.default_code)])

        if duplicates:

            raise ValidationError("Duplicate internal reference not allowed")


Hope it helps

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karir
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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