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] web_edit_user_filter: Migration to 15.0 #2746

Open
wants to merge 23 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions setup/web_edit_user_filter/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
110 changes: 110 additions & 0 deletions web_edit_user_filter/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
=================
Edit User Filters
=================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/15.0/web_edit_user_filter
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_edit_user_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/web&target_branch=15.0
:alt: Try me on Runboat

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

In standard Odoo you can edit user filters via the debug module.
The problem is that normal users often don't have access to this menu therefore can't adjust filters once they're saved.
This module makes this feature available for normal users with a user friendly interface.
It also adds the ability to adjust facets (a single part of the filter).

**Table of contents**

.. contents::
:local:

Usage
=====

Edit a favourite filter:

#. Go to a list or kanban view;
#. open the advanced search options;
#. open the 'Favorites' menu;
#. Select a filter and click on the star icon of the filter name
#. click on the pencil icon to start editing the filter.

.. image:: https://raw.githubusercontent.com/OCA/web/15.0/web_edit_user_filter/static/description/select_facet.png
:alt: Select Facet

Edit a facet:

#. Click on the facet;
#. a menu is now shown which allows you to remove values from the facet;
#. to cancel removal you can click outside the popover.

.. image:: https://raw.githubusercontent.com/OCA/web/15.0/web_edit_user_filter/static/description/edit_facet.png
:alt: Edit Facet

Known issues / Roadmap
======================

* Make individual values in facets editable.
* Make saved filters easy overwritable.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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/web/issues/new?body=module:%20web_edit_user_filter%0Aversion:%2015.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
~~~~~~~

* Onestein
* Level Prime Srl

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

* Dennis Sluijk <[email protected]>
* Roberto Fichera <[email protected]>

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.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/15.0/web_edit_user_filter>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_edit_user_filter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions web_edit_user_filter/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 Onestein
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Edit User Filters",
"category": "Extra Tools",
"version": "15.0.1.0.0",
"author": "Onestein,Level Prime Srl,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"development_status": "Production/Stable",
"license": "AGPL-3",
"depends": ["web"],
"installable": True,
"assets": {
"web.assets_backend": [
"web_edit_user_filter/static/src/js/*.js",
"web_edit_user_filter/static/src/scss/*.scss",
],
"web.assets_qweb": [
"web_edit_user_filter/static/src/xml/*.xml",
],
},
}
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-02-17 10:45+0000\n"
"Last-Translator: claudiagn <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\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"
"X-Generator: Weblate 4.3.2\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Edita la faceta"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Faceta"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtres"
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/da.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-12 17:13+0000\n"
"Last-Translator: Hans Henrik Gabelgaard <[email protected]>\n"
"Language-Team: none\n"
"Language: da\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"
"X-Generator: Weblate 3.10\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Rediger facet"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Facet"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtere"
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-09-16 14:00+0000\n"
"Last-Translator: claudiagn <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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"
"X-Generator: Weblate 3.10\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Editar faceta"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Faceta"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtros"
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-06 12:38+0000\n"
"Last-Translator: Yann Papouin <[email protected]>\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"
"X-Generator: Weblate 3.10\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Modifier la facette"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Facette"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtres"
35 changes: 35 additions & 0 deletions web_edit_user_filter/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-14 10:34+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 3.8\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Uredi Facet"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr ""

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filteri"
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-12-27 14:13+0000\n"
"Last-Translator: Pedro Castro Silva <[email protected]>\n"
"Language-Team: none\n"
"Language: pt\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"
"X-Generator: Weblate 3.10\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Editar Faceta"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Faceta"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtros"
34 changes: 34 additions & 0 deletions web_edit_user_filter/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_edit_user_filter
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-15 06:45+0000\n"
"Last-Translator: Marcel Savegnago <[email protected]>\n"
"Language-Team: none\n"
"Language: pt_BR\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"
"X-Generator: Weblate 4.3.2\n"

#. module: web_edit_user_filter
#. openerp-web
#: code:addons/web_edit_user_filter/static/src/js/backend.js:189
#, python-format
msgid "Edit Facet"
msgstr "Editar Faceta"

#. module: web_edit_user_filter
#: model:ir.model.fields,field_description:web_edit_user_filter.field_ir_filters__facet
msgid "Facet"
msgstr "Faceta"

#. module: web_edit_user_filter
#: model:ir.model,name:web_edit_user_filter.model_ir_filters
msgid "Filters"
msgstr "Filtros"
Loading
Loading