Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] base_custom_filter: Migration to 17.0 #1029

Open
wants to merge 38 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
52618f5
[13.0][ADD] base_custom_filter
JordiMForgeFlow Dec 22, 2021
55bedb8
[UPD] README.rst
OCA-git-bot Feb 6, 2022
f5757b6
[UPD] Update base_custom_filter.pot
oca-travis Feb 6, 2022
8926518
[MIG] base_custom_filter: Migration to 14.0
AshishHirapara Feb 24, 2022
5928c6b
[UPD] base_custom_filter: fixed pre-commit issue
AshishHirapara Feb 24, 2022
638d884
[UPD] Update base_custom_filter.pot
oca-travis Feb 6, 2022
a9f1975
[UPD] base_custom_filter: fixed pre-commit issue
AshishHirapara Feb 24, 2022
820bc6d
[UPD] Update base_custom_filter.pot
oca-travis Mar 18, 2022
f2533d8
[UPD] README.rst
OCA-git-bot Mar 18, 2022
a4032dc
Added translation using Weblate (French)
francesco-ooops Apr 12, 2022
71b11a8
Update translation files
oca-transbot Apr 12, 2022
b57514f
Deleted translation using Weblate (Italian)
sbidoul Apr 12, 2022
c7a23bb
Added translation using Weblate (Italian)
sbidoul Apr 12, 2022
eadeb91
Translated using Weblate (Italian)
francesco-ooops Apr 13, 2022
03fe4a0
[MIG] base_custom_filter: Migration to 15.0
AungKoKoLin1997 Jan 6, 2023
f5fe818
[MIG] base_custome_filter: Migration to 16.0
AungKoKoLin1997 Apr 28, 2023
174e116
[FIX] base_custom_filter: Prevent all records from being displayed in…
victoralmau May 16, 2023
78e9d12
[UPD] Update base_custom_filter.pot
May 17, 2023
0d8091c
[UPD] README.rst
OCA-git-bot May 17, 2023
b20176d
Update translation files
weblate May 18, 2023
d29eb59
Translated using Weblate (Italian)
mymage May 22, 2023
34b4e6a
Translated using Weblate (Italian)
mymage Jun 7, 2023
3978096
Added translation using Weblate (Spanish)
kikopeiro Aug 28, 2023
ba92107
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d9ad8cc
Translated using Weblate (Spanish)
kikopeiro Aug 28, 2023
9417218
[IMP] base_custom_filter: add search feature
AungKoKoLin1997 Jun 16, 2023
24671ba
update domain
AungKoKoLin1997 Jun 16, 2023
bf3fe04
[UPD] Update base_custom_filter.pot
Dec 9, 2023
1c4ace6
[BOT] post-merge updates
OCA-git-bot Dec 9, 2023
76e7e38
Update translation files
weblate Dec 9, 2023
b0f8949
Translated using Weblate (Spanish)
Ivorra78 Dec 9, 2023
4a9e37a
Translated using Weblate (Italian)
mymage Dec 28, 2023
4cee06c
Added translation using Weblate (Turkish)
Mar 6, 2024
c60288b
Translated using Weblate (Turkish)
Mar 6, 2024
c0bfac9
[FIX] base_custom_filter: fix access right error
AungKoKoLin1997 Jan 30, 2025
2901069
[BOT] post-merge updates
OCA-git-bot Feb 4, 2025
689908e
[IMP] base_custom_filter: pre-commit auto fixes
kobros-tech Feb 25, 2025
4a717b3
[MIG] base_custom_filter: Migration to 17.0
kobros-tech Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 141 additions & 0 deletions base_custom_filter/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
=============================================================
Add custom filters in standard filters and group by dropdowns
=============================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:94a0bc95df60e84b19f876f64311c224ff21cb02a69338ab05a2e5b8894ce596
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/server-ux-17-0-base_custom_filter
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=17.0
:alt: Try me on Runboat

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

This module enables the definition of bespoke searches within a model's
search view, in addition to permitting the creation of custom filters
that will be displayed beneath the standard filters, as well as within
the group-by menus of a model's search view.

**Table of contents**

.. contents::
:local:

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

1. Go to *Settings > Custom Filters*.

2. Create a record assigning model, type (search/filter/groupby) and
necessary attributes. Available fields and corresponding attributes
(in brackets) for each type are as follows:

Search:

- Search Field (``name``)
- Filter Domain (``filter_domain``)
- User Groups (``groups``)

Filter:

- Domain (``domain``)
- User Groups (``groups``)

Group By:

- Group By Field (field to be assigned to ``group_by`` context)
- User Groups (``groups``)

See `the official
documentation <https://www.odoo.com/documentation/16.0/developer/reference/backend/views.html#search>`__
for the definition of each attribute. Additionally, filter and
group-by records can be respectively grouped together with "Group"
assignment (there will be a separator in between groups).

Usage
=====

1. Go to the model's menu entry for which you have defined the filter.
2. 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_custom_filter%0Aversion:%2017.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\\> <https://www.ashish-hirpara.com\>>`__
- `Quartile <https://www.quartile.co>`__:

- Aung Ko Ko Lin

- `Kencove <https://www.kencove.com>`__:

- Mohamed Alkobrosli

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/17.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": "17.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"],
}
148 changes: 148 additions & 0 deletions base_custom_filter/i18n/base_custom_filter.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_custom_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_group__display_name
msgid "Display Name"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,help:base_custom_filter.field_ir_filters__filter_domain
msgid ""
"Enter a filter domain expression if necessary.\n"
" Example: [('default_code', 'ilike', self)]"
msgstr ""

#. module: base_custom_filter
#: model:ir.model.fields,field_description:base_custom_filter.field_ir_filters__filter_domain
msgid "Filter Domain"
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_group__id
msgid "ID"
msgstr ""

#. module: base_custom_filter
#: 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:ir.model.fields,field_description:base_custom_filter.field_ir_filters__search_field_id
msgid "Search Field"
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:ir.model.fields,field_description:base_custom_filter.field_ir_filters__group_ids
msgid "User Groups"
msgstr ""

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