Skip to content
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
126 changes: 126 additions & 0 deletions website_sale_product_attribute_filter_order/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===================================
Website Sale Attribute Filter Order
===================================

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

.. |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/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/19.0/website_sale_product_attribute_filter_order
: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-19-0/e-commerce-19-0-website_sale_product_attribute_filter_order
: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/e-commerce&target_branch=19.0
:alt: Try me on Runboat

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

Move active checkbox options to the first place of the list.

Since Odoo 19.0, the "radio" and "multi" attribute filter display types
already do this by default in Odoo core, so this module now only affects
the "pills" display type.

**Table of contents**

.. contents::
:local:

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

1. Go to the eCommerce (/shop)
2. Activate the website editor in the top right corner.
3. Under the ``Customize`` tab, locate the ``Attributes`` section and
enable the ``Filters Marked First`` option.

Usage
=====

1. Go to the eCommerce
2. Set one or more attributes on
3. You can see that all enabled attribute values are bubbled up to the
first position in the list.

..

|image1|

.. |image1| image:: https://raw.githubusercontent.com/OCA/e-commerce/19.0/website_sale_product_attribute_filter_order/static/description/attributes00.png

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

- Add support to change the order of the attributes (by name, by
sequence, ...)

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_product_attribute_filter_order%0Aversion:%2019.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>`__:

- Alexandre D. Díaz
- Pilar Vargas
- Carlos Lopez

- Manuel Márquez <buzondemam@gmail.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-Tardo| image:: https://github.com/Tardo.png?size=40px
:target: https://github.com/Tardo
:alt: Tardo

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

|maintainer-Tardo|

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/19.0/website_sale_product_attribute_filter_order>`_ 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 website_sale_product_attribute_filter_order/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
20 changes: 20 additions & 0 deletions website_sale_product_attribute_filter_order/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Tecnativa - Alexandre D. Díaz
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Website Sale Attribute Filter Order",
"version": "19.0.1.0.0",
"category": "Website",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-commerce",
"license": "LGPL-3",
"summary": "Move active checkbox options to the first place of the list",
"depends": ["website_sale"],
"data": ["templates/website_sale.xml"],
"assets": {
"website.website_builder_assets": [
"website_sale_product_attribute_filter_order/static/src/website_builder/**/*",
],
},
"installable": True,
"maintainers": ["Tardo"],
}
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions website_sale_product_attribute_filter_order/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_product_attribute_filter_order
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2026-05-05 15:14+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 5.15.2\n"

#. module: website_sale_product_attribute_filter_order
#: model_terms:ir.ui.view,arch_db:website_sale_product_attribute_filter_order.snippet_options
msgid "Filters Marked First"
msgstr "Filtri marcati primi"
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_product_attribute_filter_order
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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_product_attribute_filter_order
#: model_terms:ir.ui.view,arch_db:website_sale_product_attribute_filter_order.snippet_options
msgid "Filters Marked First"
msgstr ""
3 changes: 3 additions & 0 deletions website_sale_product_attribute_filter_order/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1. Go to the eCommerce (/shop)
2. Activate the website editor in the top right corner.
3. Under the `Customize` tab, locate the `Attributes` section and enable the `Filters Marked First` option.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [Tecnativa](https://www.tecnativa.com):
- Alexandre D. Díaz
- Pilar Vargas
- Carlos Lopez
- Manuel Márquez \<<buzondemam@gmail.com>\>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Move active checkbox options to the first place of the list.

Since Odoo 19.0, the "radio" and "multi" attribute filter display types
already do this by default in Odoo core, so this module now only affects
the "pills" display type.
2 changes: 2 additions & 0 deletions website_sale_product_attribute_filter_order/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> - Add support to change the order of the attributes (by name, by
> sequence, ...)
6 changes: 6 additions & 0 deletions website_sale_product_attribute_filter_order/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. Go to the eCommerce
2. Set one or more attributes on
3. You can see that all enabled attribute values are bubbled up to the
first position in the list.

> ![](../static/description/attributes00.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading