Skip to content

Commit

Permalink
Merge PR #717 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 16, 2023
2 parents 69107f9 + 412c1ce commit d7ae4af
Show file tree
Hide file tree
Showing 17 changed files with 733 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/website_sale_attribute_filter_form_submit/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,
)
104 changes: 104 additions & 0 deletions website_sale_attribute_filter_form_submit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
================================
Website manual attribute filters
================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/14.0/website_sale_attribute_filter_form_submit
:alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-website_sale_attribute_filter_form_submit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/113/14.0
:alt: Try me on Runbot

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

This module allows to configure the website filters in an no automatic way, so the
filters aren't applied until the user explicitly validate them. It can be set on
any needed website.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

#. Go to the frontend /shop url of the website you want to set the manual filters into.
#. Hit the Configure menu and enable the option *Manual filters*.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_attribute_filter_form_submit/static/description/manual_filter_configuration.png
:alt: To enable the manual filters
:width: 600 px

Usage
=====

When manual filter are active, the user can set as many filters as desired and then
hit the submit button to apply them. This allows to set several filters at once, which
isn't always possible with the automatic behavior.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_attribute_filter_form_submit/static/description/manual_filter_usage.gif
:alt: To enable the manual filters
:width: 600 px

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

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

* Studio73
* Tecnativa

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

* `Studio73 <https://www.studio73.es>`_:

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

* David Vidal

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/e-commerce <https://github.com/OCA/e-commerce/tree/14.0/website_sale_attribute_filter_form_submit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions website_sale_attribute_filter_form_submit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2021 Studio73 - Miguel Gandia
# Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website manual attribute filters",
"version": "15.0.1.0.0",
"category": "E-Commerce",
"summary": "Allow to apply manually the filters on the e-commerce",
"license": "AGPL-3",
"depends": ["website_sale"],
"data": [
"views/website_sale.xml",
],
"assets": {
"web.assets_frontend": [
"website_sale_attribute_filter_form_submit/static/src/js/website_sale.js"
],
},
"author": "Studio73, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-commerce",
"installable": True,
}
21 changes: 21 additions & 0 deletions website_sale_attribute_filter_form_submit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_attribute_filter_form_submit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-05-10 15:58+0000\n"
"PO-Revision-Date: 2021-05-10 15:58+0000\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: website_sale_attribute_filter_form_submit
#: model_terms:ir.ui.view,arch_db:website_sale_attribute_filter_form_submit.products_attributes_filter_manual
msgid "Apply"
msgstr "Aplicar"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_attribute_filter_form_submit
#
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: website_sale_attribute_filter_form_submit
#: model_terms:ir.ui.view,arch_db:website_sale_attribute_filter_form_submit.products_attributes_filter_manual
msgid "Apply"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To configure this module, you need to:

#. Go to the frontend /shop url of the website you want to set the manual filters into.
#. Hit the Configure menu and enable the option *Manual filters*.

.. figure:: ../static/description/manual_filter_configuration.png
:alt: To enable the manual filters
:width: 600 px
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* `Studio73 <https://www.studio73.es>`_:

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

* David Vidal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module allows to configure the website filters in an no automatic way, so the
filters aren't applied until the user explicitly validate them. It can be set on
any needed website.
7 changes: 7 additions & 0 deletions website_sale_attribute_filter_form_submit/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
When manual filter are active, the user can set as many filters as desired and then
hit the submit button to apply them. This allows to set several filters at once, which
isn't always possible with the automatic behavior.

.. figure:: ../static/description/manual_filter_usage.gif
:alt: To enable the manual filters
:width: 600 px
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d7ae4af

Please sign in to comment.