Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Filtering by Attribute Value removed in catalog in Odoo 19

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
developmentsales
3 Réponses
1724 Vues
Avatar
BobInc, Chuck Mako

In odoo 18 in the backend product catalog, you could filter by Attribute Values in the SearchPanel:

                <searchpanel>
                    <field name="categ_id"
                           string="Product Category"
                           icon="fa-th-list"/>
                    <field name="product_template_attribute_value_ids"
                           string="Attributes"
                           icon="fa-th-list"
                           domain="[('ptav_active', '=', True), ('product_tmpl_id.active', '=', True)]"
                           enable_counters="1"
                           select="multi"/>
                </searchpanel>


But in odoo 19 I see that the PTAV was replaced by Tags:

                <searchpanel>
                    <field name="categ_id"
                           string="Categories"
                           icon="fa-th-list"/>
                    <field name="product_tag_ids"
                           string="Tags"
                           icon="fa-th-list"
                           enable_counters="1"
                           select="multi"/>
                </searchpanel>

Is there any reason for this change? I want to still be able to filter by ptav like color etc

0
Avatar
Ignorer
Codesphere Tech

Hello,
Are you talking about catalog view open from sales order?

faOtools

This tool - https://apps.odoo.com/apps/modules/19.0/product_management - might also be helpful for those who are searching for an advanced tool to filter by attributes. Among others, it lets you display products that have a particular attribute or attribute value; search for attributes themselves; and mass update product attributes and values.

Avatar
CandidRoot Solutions
Meilleure réponse

Hello Chuck,

You are spot on, this is a deliberate change in the v19 codebase (and recent v18 updates).

Odoo replaced the specific attribute filtering (product_template_attribute_value_ids) with Tags in the catalog view mainly for performance. In databases with complex variants (like apparel with Color/Size/Fabric), loading that attribute list in the sidebar was causing significant slowdowns. Tags are much lighter to query.

However, for many use cases, filtering by specific attributes is mandatory. You can easily add it back by extending the search view.

The Fix (XML): You can use an xpath to insert the field back into the search panel. This snippet restores the v18 behavior:

XML

<record id="view_product_catalog_search_restore_attributes" model="ir.ui.view">
    <field name="name">product.catalog.search.restore.attributes</field>
    <field name="model">product.product</field>
    <field name="inherit_id" ref="product.product_view_search_catalog"/>
    <field name="arch" type="xml">
        <xpath expr="//searchpanel/field[@name='product_tag_ids']" position="before">
            <field name="product_template_attribute_value_ids"
                   string="Attributes"
                   icon="fa-th-list"
                   enable_counters="1"
                   select="multi"
                   domain="[('ptav_active', '=', True), ('product_tmpl_id.active', '=', True)]"/>
        </xpath>
    </field>
</record>

If you are using Odoo Studio:

  1. Open the Product Catalog.

  2. Toggle Studio and click on the Search View (usually on the left sidebar options).

  3. Find "Product Template Attribute Values" in the field list and drag it back into the Search Panel area.

So to answer your question: Yes, there is a reason (performance), but you can safely revert it if your catalog isn't massive.

Hope this helps!

If this helped, kindly upvote.

Best Regards,
,
CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Whatapp: (+91) 8849036209

Email: info@candidroot.com
Web: https://www.candidroot.com

2
Avatar
Ignorer
BobInc, Chuck Mako
Auteur

Thank you!

Avatar
Hristo Chankov
Meilleure réponse

Dear @Vimal - how you have done this?

P.S. I can believe that ODOO removed this. I am very disappointed. One of the reason to choose ODOO was that can categorize products in catalog and use something like faceted search. Have no idea how other user, with thousands of products, can use it and find right product.

0
Avatar
Ignorer
Avatar
Vimal bhimani
Meilleure réponse

in v19 i created search panel with variant ,  inside attribute OR and between 2 attribute AND logic ,can filter very fast  
email me ,I can share module , vimal_bhimani2000@yahoo.com

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to Print Shipping Labels Automatically Without Using IoT? Résolu
development configuration sales
Avatar
Avatar
Avatar
2
mars 26
1077
Restrict pricelist visibility per user in Odoo? (best practice?) Résolu
development configuration sales
Avatar
Avatar
2
janv. 26
1474
Upselling subscription discounts the recurring price
development sales service
Avatar
0
nov. 25
1120
Comment utiliser stock.piking
development stock sales
Avatar
0
mars 25
1950
Why Total Discount Sum Stopped Working Suddenly?
development sales odoo16features
Avatar
0
juil. 23
3331
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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