Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How can I customize product labels to show additional information?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
barcode
2 Respostes
988 Vistes
Avatar
sadashiv shete

When I use Odoo software for my brass products, each product has a different size, weight, and type. For these products, I need to print barcodes that include:


Product name

Size

Weight

Type

Company name

(Optional) Product photo

MRP

Wholesale price


Currently, when I print labels from Odoo, it only shows the product name and price. I want to customize the label so that all the above details appear on the barcode/label as per my requirement. Is there any option in Odoo to achieve this, or do I need a customization?


Secondly, when I create a new product in Odoo, I have to manually enter a unique code (barcode or internal reference). It is very difficult to track which codes I have already used. I want this product code to be generated automatically for each new product.


These are the two main limitations I am facing in Odoo. How can I solve them?

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

The best way is to configure an Odoo Sequence and link it to the default_code (internal reference) or barcode.


Sample Code:

Data file for sequence:


<odoo>

    <!-- Sequence definition for product internal reference -->

    <record id="seq_product_default_code" model="ir.sequence">

        <field name="name">Product Internal Reference</field>

        <field name="code">product.default.code</field>

        <field name="prefix">PROD/</field>

        <field name="padding">5</field>

        <field name="number_next">1</field>

        <field name="number_increment">1</field>

        <field name="company_id" eval="False"/>

    </record>

</odoo>


Python:


from odoo import api, fields, models


class ProductTemplate(models.Model):

    _inherit = "product.template"


    @api.model_create_multi

    def create(self, vals_list):

        for vals in vals_list:

            if not vals.get("default_code"):

                vals["default_code"] = self.env["ir.sequence"].next_by_code(

                    "product.default.code"

                )

        return super().create(vals_list)


Result:

internal reference = PROD/00001


Hope it helps

0
Avatar
Descartar
Avatar
STAFFINSIDE
Best Answer

Hi,

  1. Custom barcode/label – The standard Odoo label only shows a few fields. To add size, weight, type, company, MRP, wholesale price, or even a product image, you’ll need to customize the report template (report.product_template_label). This can be done with Studio (adding extra fields in the QWeb template) or with a small custom module if you want full control of the design.
  2. Automatic product codes – You don’t need to enter barcodes or internal references manually. You can set up a sequence so Odoo generates a unique code for every new product. In developer mode go to Technical → Sequences & Identifiers, create a sequence, and assign it to the product default_code (internal reference) or barcode field. With that, each new product gets a unique code automatically.

So: label customization = template change, unique codes = sequence.

Hope this helps!

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Can I remove the "Product Barcode Lookup" module from my database? Solved
barcode
Avatar
Avatar
Avatar
2
de set. 25
732
Barcode - Process and Cancel MOs Using Barcodes (last chapter)
barcode
Avatar
0
de febr. 25
2043
Default barcode nomenclature
barcode
Avatar
0
de des. 24
46
Find product by name scanning barcode & regex segmentation
barcode
Avatar
0
de des. 24
1729
Can I associate Field Service with odoo's Barcode model?
barcode
Avatar
Avatar
1
d’oct. 24
3266
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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