Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ebff41f
[11.0][ADD] website_sale_product_attribute_filter_visibility: Allow h…
sergio-teruel Dec 17, 2018
67e8d83
[UPD] README.rst
OCA-git-bot Mar 23, 2019
4ad74be
[UPD] Update website_sale_product_attribute_filter_visibility.pot
oca-travis Mar 23, 2019
bf9ee9c
[11.0][IMP] website_sale_product_attribute_filter_visibility: Add hoo…
sergio-teruel Apr 12, 2019
6b61c56
[11.0][IMP] website_sale_product_attribute_filter_visibility: Set web…
sergio-teruel Apr 12, 2019
dc9914c
[UPD] Update website_sale_product_attribute_filter_visibility.pot
oca-travis Apr 15, 2019
23d9ae8
Update translation files
oca-transbot May 20, 2019
d821165
[MIG] Migration to 12.0
cor9003 Jun 4, 2019
856df29
[UPD] README.rst
OCA-git-bot Jun 13, 2019
34bb6cd
[UPD] Update website_sale_product_attribute_filter_visibility.pot
oca-travis Jun 13, 2019
4ba0a57
Update translation files
oca-transbot Jun 16, 2019
c672e87
[UPD] README.rst
OCA-git-bot Jul 29, 2019
3db3634
[MIG] website_sale_product_attribute_filter_visibility: Migration scr…
sergio-teruel Jan 13, 2020
2ae75ea
[IMP] website_sale_product_attribute_filter_visibility: black, isort
Tardo Jan 30, 2020
e5032f4
[MIG] website_sale_product_attribute_filter_visibility: Migration to …
Tardo Jan 30, 2020
094cafa
[UPD] Update website_sale_product_attribute_filter_visibility.pot
oca-travis Apr 23, 2020
24b3436
Update translation files
oca-transbot Apr 28, 2020
737d057
[IMP] website_sale_product_attribute_filter_visibility: black, isort,…
ioans73 Jul 27, 2021
2efd22b
[MIG] website_sale_product_attribute_filter_visibility: Migration to …
ioans73 Jul 27, 2021
a7988ea
[UPD] Update website_sale_product_attribute_filter_visibility.pot
oca-travis Nov 5, 2021
f5e1a1c
[UPD] README.rst
OCA-git-bot Nov 5, 2021
06967e0
[UPD] README.rst
OCA-git-bot Sep 3, 2023
30f987c
Update translation files
weblate Oct 9, 2023
26d48da
Translated using Weblate (Spanish)
Ivorra78 Feb 18, 2024
6a4bfa4
Added translation using Weblate (Italian)
mymage Jan 8, 2025
7d6359e
Translated using Weblate (Italian)
mymage May 20, 2025
fc9058a
Translated using Weblate (Italian)
mymage May 27, 2025
4a314b6
Translated using Weblate (Italian)
mymage May 29, 2025
68b8ea8
[IMP] : pre-commit stuff
ntsirintanis Apr 21, 2026
f2b4dfb
[MIG] website_sale_product_attribute_filter_visibility: Migration to …
ntsirintanis Apr 21, 2026
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
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,
)
93 changes: 93 additions & 0 deletions website_sale_product_attribute_filter_visibility/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================================================
Website Sale Product Attribute Filter Visibility
================================================

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

.. |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/license-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/16.0/website_sale_product_attribute_filter_visibility
: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-16-0/e-commerce-16-0-website_sale_product_attribute_filter_visibility
: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=16.0
:alt: Try me on Runboat

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

This module extends the functionality of website sale module to allow hide some
product attributes.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module you need to:

* Go to 'Sales > Settings > Product Attributes'.
* Check 'Visible in website' field to display this attribute in website
attributes filter.
* Go to Website Shop and active product attributes filter and the system only
display the attributes published.

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_visibility%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
~~~~~~~

* Tecnativa

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

* Sergio Teruel <sergio.teruel@tecnativa.com>
* Alexandre Díaz <alexandre.diaz@tecnativa.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.

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/16.0/website_sale_product_attribute_filter_visibility>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions website_sale_product_attribute_filter_visibility/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import controllers
from . import models
25 changes: 25 additions & 0 deletions website_sale_product_attribute_filter_visibility/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Product Attribute Filter Visibility",
"summary": "Allow hide any attributes in shop attributes filter",
"version": "16.0.1.0.0",
"development_status": "Production/Stable",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["website_sale"],
"data": ["views/product_attribute_views.xml"],
"assets": {
"web.assets_frontend": [
(
"website_sale_product_attribute_filter_visibility/"
"static/src/js/"
"website_sale_product_attribute_filter_visibility_tour.js"
),
],
},
}
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).
from . import main
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import http

from odoo.addons.website_sale.controllers.main import WebsiteSale


class ProductAttribute(WebsiteSale):
@http.route()
def shop(self, page=0, category=None, search="", ppg=False, **post):
response = super().shop(
page=page, category=category, search=search, ppg=ppg, **post
)
attributes = response.qcontext.get("attributes")
if attributes:
response.qcontext["attributes"] = attributes.filtered("website_published")
return response
28 changes: 28 additions & 0 deletions website_sale_product_attribute_filter_visibility/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_product_attribute_filter_visibility
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-17 16:00+0000\n"
"PO-Revision-Date: 2018-12-17 17:01+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n"

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__is_published
msgid "Is Published"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model,name:website_sale_product_attribute_filter_visibility.model_product_attribute
msgid "Product Attribute"
msgstr "Atributo de producto"
62 changes: 62 additions & 0 deletions website_sale_product_attribute_filter_visibility/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_product_attribute_filter_visibility
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-05-29 16:26+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.10.4\n"

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__can_publish
msgid "Can Publish"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__id
msgid "ID"
msgstr "ID"

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__is_published
msgid "Is Published"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute____last_update
msgid "Last Modified on"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model,name:website_sale_product_attribute_filter_visibility.model_product_attribute
msgid "Product Attribute"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,help:website_sale_product_attribute_filter_visibility.field_product_attribute__website_url
msgid "The full URL to access the document through the website."
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__website_published
msgid "Visible on current website"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__website_url
msgid "Website URL"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_product_attribute_filter_visibility
#
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_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__can_publish
msgid "Can Publish"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__display_name
msgid "Display Name"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__id
msgid "ID"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__is_published
msgid "Is Published"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute____last_update
msgid "Last Modified on"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model,name:website_sale_product_attribute_filter_visibility.model_product_attribute
msgid "Product Attribute"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,help:website_sale_product_attribute_filter_visibility.field_product_attribute__website_url
msgid "The full URL to access the document through the website."
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__website_published
msgid "Visible on current website"
msgstr ""

#. module: website_sale_product_attribute_filter_visibility
#: model:ir.model.fields,field_description:website_sale_product_attribute_filter_visibility.field_product_attribute__website_url
msgid "Website URL"
msgstr ""
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).
from . import product_attribute
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models


class ProductAttribute(models.Model):
_inherit = ["product.attribute", "website.published.mixin"]
_name = "product.attribute"

website_published = fields.Boolean(default=True)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Sergio Teruel <sergio.teruel@tecnativa.com>
* Alexandre Díaz <alexandre.diaz@tecnativa.com>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of website sale module to allow hide some
product attributes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module you need to:

* Go to 'Sales > Settings > Product Attributes'.
* Check 'Visible in website' field to display this attribute in website
attributes filter.
* Go to Website Shop and active product attributes filter and the system only
display the attributes published.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading