odoo13-addon-base-search-custom-field-filter


Nameodoo13-addon-base-search-custom-field-filter JSON
Version 13.0.1.0.1 PyPI version JSON
download
home_pagehttps://github.com/OCA/server-ux
SummaryAdd custom filters for fields via UI
upload_time2021-02-13 06:48:58
maintainer
docs_urlNone
authorTecnativa, Odoo Community Association (OCA)
requires_python>=3.5
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ====================================
Add custom filters for fields via UI
====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
    :target: https://github.com/OCA/server-ux/tree/13.0/base_search_custom_field_filter
    :alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-base_search_custom_field_filter
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
    :target: https://runbot.odoo-community.org/runbot/250/13.0
    :alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5| 

This module allows to define custom filters in the search views for an specific
field belonging to the document or any other related document.

This nature makes the definition quite technical, but once done, it adds the
element in the UI for regular user use.

**Table of contents**

.. contents::
   :local:

Configuration
=============

#. Go to *Settings > Technical > User Interface > Custom Field Filters*.
#. Create a new record, and define following information:

   * The **Model** for which you are defining the filter. It will appear in all
     the search views of this model.
   * The label you want to see on the search line on the **Name** field. This
     field allows translations for proper UI in different languages.
   * The **Expression**, which is the field chain string with dot notation.
     Examples: `product_id`, `product_id.seller_ids.name`, `partner_id.lang`.
   * Optionally, you can fill **Position After** for indicating after which
     existing field (technical name) the filter will appear. If empty or not
     found, the filter will be added at the end.
#. You can reorder records for determining sorting for multiple filters for the
   same model with the arrow handle in the left part.

Usage
=====

#. Go to the menu entry for which you have defined the custom field filter.
#. On the search bar, type anything.
#. In the filter list, you will see the line for the element you have defined.

As demo data, a custom field filter is included for sample purposes:

.. image:: https://raw.githubusercontent.com/OCA/server-ux/13.0/base_search_custom_field_filter/static/src/img/ir_ui_custom_field_filter.png

Steps for trying this sample:

#. Install `contacts` module.
#. Go to *Contacts*.
#. Type "english" and you'll find the filter "Language" at the end:

.. image:: https://raw.githubusercontent.com/OCA/server-ux/13.0/base_search_custom_field_filter/static/src/img/contact_search.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_search_custom_field_filter%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

  * Carlos Dauden
  * Pedro M. Baeza

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
    :target: https://github.com/pedrobaeza
    :alt: pedrobaeza

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pedrobaeza| 

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/13.0/base_search_custom_field_filter>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/server-ux",
    "name": "odoo13-addon-base-search-custom-field-filter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tecnativa, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": "",
    "description": "====================================\nAdd custom filters for fields via UI\n====================================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github\n    :target: https://github.com/OCA/server-ux/tree/13.0/base_search_custom_field_filter\n    :alt: OCA/server-ux\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-base_search_custom_field_filter\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n    :target: https://runbot.odoo-community.org/runbot/250/13.0\n    :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module allows to define custom filters in the search views for an specific\nfield belonging to the document or any other related document.\n\nThis nature makes the definition quite technical, but once done, it adds the\nelement in the UI for regular user use.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nConfiguration\n=============\n\n#. Go to *Settings > Technical > User Interface > Custom Field Filters*.\n#. Create a new record, and define following information:\n\n   * The **Model** for which you are defining the filter. It will appear in all\n     the search views of this model.\n   * The label you want to see on the search line on the **Name** field. This\n     field allows translations for proper UI in different languages.\n   * The **Expression**, which is the field chain string with dot notation.\n     Examples: `product_id`, `product_id.seller_ids.name`, `partner_id.lang`.\n   * Optionally, you can fill **Position After** for indicating after which\n     existing field (technical name) the filter will appear. If empty or not\n     found, the filter will be added at the end.\n#. You can reorder records for determining sorting for multiple filters for the\n   same model with the arrow handle in the left part.\n\nUsage\n=====\n\n#. Go to the menu entry for which you have defined the custom field filter.\n#. On the search bar, type anything.\n#. In the filter list, you will see the line for the element you have defined.\n\nAs demo data, a custom field filter is included for sample purposes:\n\n.. image:: https://raw.githubusercontent.com/OCA/server-ux/13.0/base_search_custom_field_filter/static/src/img/ir_ui_custom_field_filter.png\n\nSteps for trying this sample:\n\n#. Install `contacts` module.\n#. Go to *Contacts*.\n#. Type \"english\" and you'll find the filter \"Language\" at the end:\n\n.. image:: https://raw.githubusercontent.com/OCA/server-ux/13.0/base_search_custom_field_filter/static/src/img/contact_search.png\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_search_custom_field_filter%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Tecnativa\n\nContributors\n~~~~~~~~~~~~\n\n* `Tecnativa <https://www.tecnativa.com>`_:\n\n  * Carlos Dauden\n  * Pedro M. Baeza\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px\n    :target: https://github.com/pedrobaeza\n    :alt: pedrobaeza\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-pedrobaeza| \n\nThis module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/13.0/base_search_custom_field_filter>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Add custom filters for fields via UI",
    "version": "13.0.1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/OCA/server-ux"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7782703e15d083a037f300762ff42006ca9f38db3597ffeb9c1126f69a8b5fb",
                "md5": "7de917305e7b0f364be8bbb55a1c3982",
                "sha256": "f70acfdae88a3909f6296303f3260b89ddccbcd3d4647d9f5266950d1019e07f"
            },
            "downloads": -1,
            "filename": "odoo13_addon_base_search_custom_field_filter-13.0.1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7de917305e7b0f364be8bbb55a1c3982",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 230763,
            "upload_time": "2021-02-13T06:48:58",
            "upload_time_iso_8601": "2021-02-13T06:48:58.828651Z",
            "url": "https://files.pythonhosted.org/packages/a7/78/2703e15d083a037f300762ff42006ca9f38db3597ffeb9c1126f69a8b5fb/odoo13_addon_base_search_custom_field_filter-13.0.1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-02-13 06:48:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "server-ux",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo13-addon-base-search-custom-field-filter"
}
        
Elapsed time: 0.14594s