Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

Is there a way to flag duplicate products?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
codeproductreferenceeditfontcolorsnumberinternal
5 Antworten
12713 Ansichten
Avatar
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
Avatar
Verwerfen
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.

Avatar
Janeesh
Beste Antwort

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
Avatar
Verwerfen
Avatar
Med Said BARA
Beste Antwort

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
Avatar
Verwerfen
Avatar
Ray Carnes
Beste Antwort

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

1
Avatar
Verwerfen
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).

Avatar
Ankit H Gandhi(AHG)
Beste Antwort

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
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
Odoo 19 - can I hide the Product Internal Reference on Quotations and Sales Orders? Gelöst
product hide reference default_code internal
Avatar
Avatar
1
Nov. 25
464
List of Color Codes? Gelöst
code colors
Avatar
Avatar
Avatar
Avatar
3
März 23
27608
product code in sequence
code product
Avatar
Avatar
1
März 15
4172
product code in sequence
code product
Avatar
0
März 15
3928
Multiple Product Edit in Inventory Gelöst
product inventory edit
Avatar
Avatar
1
Mai 24
1607
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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