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
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    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

Is there a way to flag duplicate products?

Abonare

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

Această întrebare a fost marcată
codeproductreferenceeditfontcolorsnumberinternal
5 Răspunsuri
12721 Vizualizări
Imagine profil
Apex Motion Control, Inc.

I am looking to indicate when two products that have the same product Internal Reference number exist, the text in the product list changes to another color. This is hopefully the end goal.

I immagine there is a simple way of doing this with the view files (running on Saas version within a browser), but I am still new to editing code, and I still trying to figure out how it all works.

1
Imagine profil
Abandonează
Apex Motion Control, Inc.
Autor

@ Ray & Ben. Yeah I don't know. In another question I posted I was told that text color can be edited based off of checks that are done by default. https://www.odoo.com/forum/help-1/question/how-does-one-change-the-default-text-color-that-openerp-uses-58724 In this case the product.product.tree was edited. In my goal, I imagine I would have to create an entirely different one, but have the same color edit and different check.

Apex Motion Control, Inc.
Autor

@ Med Said Bara. In the "Product Unique EAN or Reference Code (product_unique)" does the "default_code" refer to the Internal Reference Code? In this case this module would do exactly as I need?

Med Said BARA

Yes, "product code" referes to the internal code. Try also https://www.odoo.com/apps/7.0/product_unique_default_code/

Apex Motion Control, Inc.
Autor

@ Med Said Bara. Thanks for the reply. Also you wouldn't happen to know if these modules add to my module count, such that when I start a paid service my rates would increase?

Med Said BARA

Hard to say ! But let's say, more you give, more you get.

Imagine profil
Janeesh
Cel mai bun răspuns

Hi,

It will be difficult to control with xml file. But we have different options to avoid duplicate products. Either you can give _sql_constarints for this field or you can override the create method and check whether any records existing with same internal reference.

8
Imagine profil
Abandonează
Imagine profil
Med Said BARA
Cel mai bun răspuns

Having products with the same internal code or the same product name is a nonsense.

This kind of practice should be avoided (banned).

This is also true for the  barcode identification field.

All, must be unique.

Just use: https://www.odoo.com/apps/7.0/product_unique/  and https://www.odoo.com/apps/7.0/product_name_unique_per_company/ to avoid this type of errors.

 

 

3
Imagine profil
Abandonează
Imagine profil
Ray Carnes
Cel mai bun răspuns

XML view definitions are only 'aware' of the current record so I don't see how this is possible with XML.

1
Imagine profil
Abandonează
Ben Bernard

So it is a good idea to make new custom field (boolean) to the target model, product.product. Then in the view you can define it (maybe as a checkbox).

Imagine profil
Ankit H Gandhi(AHG)
Cel mai bun răspuns

Dear,

To check exist the same Product in the line level.

from odoo import models, fields, api
from odoo.exceptions import ValidationError


class PurchaseOrder(models.Model):
_inherit = "purchase.order"

@api.multi
@api.constrains('order_line')
def _check_exist_product_in_line(self):
for purchase in self:
exist_product_list = []
for line in purchase.order_line:
if line.product_id.id in exist_product_list:
raise ValidationError(_('Product should be one per line.'))
exist_product_list.append(line.product_id.id)

Hope this code help you

Best Thanks,

Ankit H Gandhi.


0
Imagine profil
Abandonează
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
Odoo 19 - can I hide the Product Internal Reference on Quotations and Sales Orders? Rezolvat
product hide reference default_code internal
Imagine profil
Imagine profil
1
nov. 25
467
List of Color Codes? Rezolvat
code colors
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
mar. 23
27614
product code in sequence
code product
Imagine profil
Imagine profil
1
mar. 15
4172
product code in sequence
code product
Imagine profil
0
mar. 15
3933
Multiple Product Edit in Inventory Rezolvat
product inventory edit
Imagine profil
Imagine profil
1
mai 24
1611
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