• Aanmelden
  • Probeer het gratis
    • Apps
      Websites
      Maak geweldige gebruikerservaringen
      • Website
      • eCommerce
      • Blogs
      • Forums
      • Evenementen
      • Live Chat
      • eLearning
      Verkoop
      Vergroot uw succes
      • Verkoop
      • CRM
      • Facturatie
      • Kassa
        • Winkels
        • Restaurants
        • Hardware
      • Abonnementen
      • Onderteken
      • Verhuur
      • Amazon Connector
      Bedrijfsvoering
      Het draait allemaal om efficiëntie
      • Boekhouding
        • Boekhouding
        • AI
      • Project
      • Personeelsbeheer
        • Aanbeveling
        • Werving & Selectie
        • Werknemers
        • Declaraties
        • Evaluaties
        • Wagenpark
        • Vakanties
      • Voorraad
      • Inkoop
      • Productie
        • MRP
        • PLM
        • Onderhoud
        • Kwaliteit
        • IoT box
      • Helpdesk
      • Buitendienst
      Productiviteitstools
      Geweldige tools = blije mensen
      • Communicatie
        • Discussieer
        • Mailinglijsten
        • Notities
      • Tijdregistratie
      • Marketing
        • Social
        • E-mail
        • Automatisering
        • SMS
      • Enquête
      • Goedkeuringen
      • Afspraken
      • Documenten Nieuw
        • Documenten
        • Spreadsheet Nieuw
      • Planning
      Apps door derden Odoo Studio Odoo Cloud Platform
    • Rondleiding
    • Prijzen
    • Leer
    • Community

    Help

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

    • CRM
    • e-Commerce
    • Accounting
    • Inventory
    • PoS
    • Project management
    • MRP
    Take the tour
    • Alle forums
    • Onderwerpen
    • Personen
    • Labels
    • Badges
    • Over
      Ga naar:
    • Vraag
      Alle onderwerpen Personen Labels Badges Over
    2

    Making a Custom Field Searchable w/o Advanced Search

    Avatar
    Alex Gallien
    24 juni 2014
    Thanks for your subscription!

    In my current OpenERP project all products have three part numbers - the customer's part number, the OEM part number and our internal part number. I was able to add another field for the OEM part number via a custom module without issue, but was wondering if it is possible to make that field searchable from the default search under Products, without having to select 'OEM Part Number' in Advanced Search. I thought it might have something to do with adding 'select=True' in the column definition, but that didn't seem to work. It would be even better if that field was also an option when entering the product name into a Sales Order. Thanks!

    Reactie Deel
    1 Opmerking
    Avatar
    Negeren
    Avatar
    Nilesh Sheliya
    - 15 juni 2018

    Hi, this may help you. https://apps.odoo.com/apps/modules/11.0/odoo_advance_search/

    6 Antwoorden
    5
    Avatar
    Ray Carnes
    25 juni 2014
    Beste antwoord

    The search view has an XML definition, and you need to add the name of the field to it, the same way you added the new field to the XML definition of the form (or tree) view of products.

    Look for product.product_search_form_view, inherit and add your new field:

    <field name="YOUR_NEW_FIELD"/>

    Opmerking Deel
    3 Opmerkingen
    Avatar
    Negeren
    Avatar
    Alex Gallien
    - 25 juni 2014

    That was very helpful, Ray, thanks.

    Avatar
    Dr Obx
    - 23 juni 2015

    Yes in did.

    Avatar
    P.V.Anthony
    - 20 december 2016

    Any tips on how to get custom fields in the "Advance Search" under the "Reporting" menu?

    1
    Avatar
    Alex Gallien
    7 juli 2015
    Beste antwoord

    Hi Sudarsan, not sure what your level of familiarity is with custom openerp modules, but here is what my code looks like to inherit the product search form:


        <record id="product_search_form_view" model="ir.ui.view">
    <field name="model">product.product</field>
    <field name="inherit_id" ref="product.product_search_form_view"/>
    <field name="arch" type="xml">
    <search string="Product">
    <field name="x_EC_num"/>
    <field name="x_cust_desc"/>
    <field name="x_cust_num"/>
    </search>
    </field>
    </record>

    Opmerking Deel
    Avatar
    Negeren
    0
    Avatar
    Lerner
    7 juli 2015
    Beste antwoord

    How to Inherit the product serch form.I tried but Iam not getting result .Iam Sudarsan new to Odoo. Any vedio is there to help for these process

    Opmerking Deel
    1 Opmerking
    Avatar
    Negeren
    Avatar
    Alex Gallien
    - 7 juli 2015

    Added an answer with my code, hope that helps.

    Community
    • eLearning
    • Documentatie
    • Forum
    • Mailinglijsten
    Open Source
    • Download
    • Github
    • Runbot
    • Vertalingen
    Diensten
    • Odoo.sh Hosting
    • Ondersteuning
    • Upgrade
    • Onderwijs
    • Vind een boekhouder
    • Vind een partner
    • Word een Partner
    Over Odoo
    • Ons bedrijf
    • Neem contact met ons op
    • Carrières
    • Evenementen
    • Blog
    • Klanten
    • Partners
    • Juridisch
    • Privacy
    • Beveliging
    الْعَرَبيّة 简体中文 繁體中文 Nederlands English Français Deutsch Bahasa Indonesia Italiano 日本語 한국어 (KR) Português (BR) русский язык Slovenský jazyk Español ภาษาไทย Türkçe українська Tiếng Việt

    Odoo is een suite van open source zakelijke apps die aan al uw bedrijfsbehoeften voldoen: CRM, e-commerce, boekhouding, inventaris, verkooppunt, projectbeheer, enz.

    Odoo's unieke waardepropositie is om tegelijkertijd zeer eenvoudig te gebruiken en volledig geïntegreerd te zijn.

    Website made with

    Webinar French on YouTube

    1. Use the live chat to ask your questions.
    2. The operator answers within a few minutes.

    Watch now