Skip to content

Commit

Permalink
Merge PR #652 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed May 17, 2023
2 parents 5ffb48a + 9f941b9 commit 2e8a77d
Show file tree
Hide file tree
Showing 23 changed files with 1,507 additions and 0 deletions.
115 changes: 115 additions & 0 deletions base_custom_filter/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
=============================================================
Add custom filters in standard filters and group by dropdowns
=============================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/16.0/base_custom_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-16-0/server-ux-16-0-base_custom_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/16.0
:alt: Try me on Runbot

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

This module allows to define custom filters to be shown under the standard
filters and group by menus of a model's search view.

**Table of contents**

.. contents::
:local:

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

#. Go to *Settings > Custom Filters*.
#. Create a new Custom Filter, and define following information:

* The **Model** for which you are defining the filter.
* The **Type** depending on whether you want to add a filter or a grouping by
by a field.
* The **Domain** that will be applied with the filter.
* The **Group By Field** used to perform the group by.
* The **Group** to have filters under the same separator.

#. You can reorder records from the list view with the arrow handle. This will
determine the order in which they appear in the filters/groupby menu.
#. A separator is added between each custom filter added. You can create Custom
Filter Groups to group filters that you want to have displayed under the same
separator.

Usage
=====

#. Go to the model's menu entry for which you have defined the filter.
#. On the filters and group by dropdowns, you will see the configured filters.

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_custom_filter%0Aversion:%2016.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
~~~~~~~

* Ashish Hirpara
* ForgeFlow

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

* `ForgeFlow S.L. <https://www.forgeflow.com>`_:

* Jordi Masvidal

* `Ashish Hirpara <https://www.ashish-hirpara.com>`

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-AshishHirapara| image:: https://github.com/AshishHirapara.png?size=40px
:target: https://github.com/AshishHirapara
:alt: AshishHirapara
.. |maintainer-ForgeFlow| image:: https://github.com/ForgeFlow.png?size=40px
:target: https://github.com/ForgeFlow
:alt: ForgeFlow

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

|maintainer-AshishHirapara| |maintainer-ForgeFlow|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions base_custom_filter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
19 changes: 19 additions & 0 deletions base_custom_filter/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Migrated to v14.0 by Ashish Hirpara (https://www.ashish-hirpara.com)
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Add custom filters in standard filters and group by dropdowns",
"version": "16.0.1.0.0",
"category": "Usability",
"website": "https://github.com/OCA/server-ux",
"author": "Ashish Hirpara, ForgeFlow, Odoo Community Association (OCA)",
"data": [
"security/ir.model.access.csv",
"views/ir_filters_views.xml",
"views/ir_filters_group_views.xml",
],
"depends": ["web"],
"license": "AGPL-3",
"installable": True,
"maintainers": ["AshishHirapara", "ForgeFlow"],
}
129 changes: 129 additions & 0 deletions base_custom_filter/i18n/base_custom_filter.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_custom_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_base
msgid "Base"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__create_uid
msgid "Created by"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__create_date
msgid "Created on"
msgstr ""

#. module: base_custom_filter
#: model:ir.actions.act_window,name:base_custom_filter.action_ir_filters_group
#: model:ir.ui.menu,name:base_custom_filter.menu_ir_filters_group
msgid "Custom Filter Groups"
msgstr ""

#. module: base_custom_filter
#: model:ir.actions.act_window,name:base_custom_filter.action_ir_custom_filter
#: model:ir.ui.menu,name:base_custom_filter.menu_base_custom_filter
#: model:ir.ui.menu,name:base_custom_filter.menu_ir_custom_filter
msgid "Custom Filters"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__display_name
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__display_name
msgid "Display Name"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__group_id
msgid "Filter Group"
msgstr ""

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_ir_filters
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__filter_ids
msgid "Filters"
msgstr ""

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_ir_filters_group
msgid "Filters Group"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Group By"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__groupby_field
msgid "Group By Field"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__id
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__id
msgid "ID"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters____last_update
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__write_uid
msgid "Last Updated by"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__write_date
msgid "Last Updated on"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__model_id
msgid "Model"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__name
msgid "Name"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Search Filters Group"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__sequence
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__sequence
msgid "Sequence"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__type
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__type
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Type"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Without Filters"
msgstr ""
130 changes: 130 additions & 0 deletions base_custom_filter/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_custom_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_base
msgid "Base"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__create_uid
msgid "Created by"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__create_date
msgid "Created on"
msgstr ""

#. module: base_custom_filter
#: model:ir.actions.act_window,name:base_custom_filter.action_ir_filters_group
#: model:ir.ui.menu,name:base_custom_filter.menu_ir_filters_group
msgid "Custom Filter Groups"
msgstr ""

#. module: base_custom_filter
#: model:ir.actions.act_window,name:base_custom_filter.action_ir_custom_filter
#: model:ir.ui.menu,name:base_custom_filter.menu_base_custom_filter
#: model:ir.ui.menu,name:base_custom_filter.menu_ir_custom_filter
msgid "Custom Filters"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__display_name
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__display_name
msgid "Display Name"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__group_id
msgid "Filter Group"
msgstr ""

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_ir_filters
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__filter_ids
msgid "Filters"
msgstr ""

#. module: base_custom_filter
#: model:ir.model,name:base_custom_filter.model_ir_filters_group
msgid "Filters Group"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Group By"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__groupby_field
msgid "Group By Field"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__id
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__id
msgid "ID"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters____last_update
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__write_uid
msgid "Last Updated by"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__write_date
msgid "Last Updated on"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__model_id
msgid "Model"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__name
msgid "Name"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Search Filters Group"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__sequence
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__sequence
msgid "Sequence"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__type
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters_group__type
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Type"
msgstr ""

#. module: base_custom_filter
#: model_terms:ir.ui.view,arch_db:base_custom_filter.search_ir_filters_group
msgid "Without Filters"
msgstr ""
Loading

0 comments on commit 2e8a77d

Please sign in to comment.