-
-
Notifications
You must be signed in to change notification settings - Fork 534
[19.0][MIG] website_sale_product_attribute_value_filter_existing: Migration to 19.0 #1151
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
Open
ALopez-Adhoc
wants to merge
30
commits into
OCA:19.0
Choose a base branch
from
adhoc-dev:19.0-mig-website_sale_product_attribute_value_filter_existing
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+901
−0
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fd724c0
[IMP] : black, isort, prettier
CarlosRoca13 1731b16
[MIG] website_sale_product_attribute_value_filter_existing: Migration…
CarlosRoca13 ac8c981
[FIX] website_sale_product_attribute_value_filter_existing: developme…
sbidoul bcc5ab4
Added translation using Weblate (Spanish)
claudiagn 48ec5bb
Added translation using Weblate (Catalan)
claudiagn eb938c7
Added translation using Weblate (Dutch)
bosd b9dd0b8
[IMP] website_sale_product_attribute_value_filter_existing: black, is…
miguel-S73 3cd5c95
[MIG] website_sale_product_attribute_value_filter_existing: Migration…
miguel-S73 3bd7506
[IMP] website_sale_product_attribute_value_filter_existing: black, is…
CarlosRoca13 bd20d10
[MIG] website_sale_product_attribute_value_filter_existing: Migration…
CarlosRoca13 73bebe5
[16.0][MIG] website_sale_product_attribute_value_filter_existing: Mig…
anothingguy 074e797
[FIX] website_sale_product_attribute_value_filter_existing: match sig…
HekkiMelody ff5547c
website_sale_product_attribute_value_filter_existing 16.0.1.0.1
OCA-git-bot a131399
[FIX] website_sale_product_attribute_value_filter_existing: fix test …
pilarvargas-tecnativa 4ce2c96
[IMP] website_sale_product_attribute_value_filter_existing: test perf…
josep-tecnativa 513b673
Added translation using Weblate (Italian)
mymage 9d9e9a2
[IMP] website_sale_product_attribute_value_filter_existing: adds filt…
lef-adhoc 65b7eae
[FIX] website_sale_product_attribute_value_filter_existing: Hide attr…
pilarvargas-tecnativa e0e37a4
[IMP] website_sale_product_attribute_value_filter_existing: pre-commi…
pilarvargas-tecnativa 27369e5
[MIG] website_sale_product_attribute_value_filter_existing: Migration…
pilarvargas-tecnativa acd19ae
[UPD] Update website_sale_product_attribute_value_filter_existing.pot
b17dc51
[BOT] post-merge updates
OCA-git-bot 464f58a
[FIX] website_sale_product_attribute_value_filter_existing: Hide attr…
pilarvargas-tecnativa af767bf
Update translation files
weblate 5fed67c
[BOT] post-merge updates
OCA-git-bot 89d2d6f
Added translation using Weblate (Turkish)
bo-eska be82198
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago 21c4616
[IMP] website_sale_product_attribute_value_filter_existing: improve p…
pilarvargas-tecnativa fd5964f
[BOT] post-merge updates
OCA-git-bot eac2057
[MIG] website_sale_product_attribute_value_filter_existing: Migration…
ALopez-Adhoc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
website_sale_product_attribute_value_filter_existing/README.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| .. 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 Value Existing | ||
| ===================================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:14c186cd0049982173f1eb3e968492d33187543aee78ee73658f1e9d0fdb377a | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |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-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_value_filter_existing | ||
| :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_value_filter_existing | ||
| :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| | ||
|
|
||
| This module extends the functionality of website sale module to allow | ||
| hide product attributes values which exist but not used on any variants. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| 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_value_filter_existing%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>`__: | ||
|
|
||
| - Victor M.M. Torres | ||
| - Sergio Teruel | ||
| - Carlos Roca | ||
| - Pilar Vargas | ||
|
|
||
| - `Trobz <https://trobz.com>`__: | ||
|
|
||
| - Hoang Diep <hoang@trobz.com> | ||
|
|
||
| Other credits | ||
| ------------- | ||
|
|
||
| The migration of this module from 15.0 to 16.0 was financially supported | ||
| by Camptocamp | ||
|
|
||
| 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/19.0/website_sale_product_attribute_value_filter_existing>`_ 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
2
website_sale_product_attribute_value_filter_existing/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
| from . import controllers |
26 changes: 26 additions & 0 deletions
26
website_sale_product_attribute_value_filter_existing/__manifest__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright 2019 Tecnativa - Victor M.M. Torres | ||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
| { | ||
| "name": "Website Sale Attribute Value Existing", | ||
| "summary": "Allow hide attributes values not used in variants", | ||
| "version": "19.0.1.0.0", | ||
| "development_status": "Production/Stable", | ||
| "category": "Website", | ||
| "website": "https://github.com/OCA/e-commerce", | ||
| "author": "Tecnativa, Odoo Community Association (OCA)", | ||
| "license": "LGPL-3", | ||
| "application": False, | ||
| "installable": True, | ||
| "depends": [ | ||
| "website_sale", | ||
| ], | ||
| "data": ["views/templates.xml"], | ||
| "assets": { | ||
| "web.assets_tests": [ | ||
| "/website_sale_product_attribute_value_filter_existing/static/src/js/" | ||
| "website_sale_product_attribute_value_filter_existing_tour.esm.js", | ||
| "/website_sale_product_attribute_value_filter_existing/static/src/js/" | ||
| "website_sale_product_attribute_value_filter_existing_search_desk_tour.esm.js", | ||
ALopez-Adhoc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| }, | ||
| } | ||
2 changes: 2 additions & 0 deletions
2
website_sale_product_attribute_value_filter_existing/controllers/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
| from . import main |
29 changes: 29 additions & 0 deletions
29
website_sale_product_attribute_value_filter_existing/controllers/main.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Copyright 2019 Tecnativa - Sergio Teruel | ||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
| from odoo.http import request | ||
|
|
||
| from odoo.addons.website_sale.controllers.main import WebsiteSale | ||
|
|
||
|
|
||
| class ProductAttributeValues(WebsiteSale): | ||
| def _get_additional_extra_shop_values(self, values, **post): | ||
| res = super()._get_additional_extra_shop_values(values, **post) | ||
| search_product = values.get("search_product") | ||
| attributes = values.get("attributes") | ||
| if search_product and attributes: | ||
| ProductTemplateAttributeLine = request.env[ | ||
| "product.template.attribute.line" | ||
| ] | ||
| lines = ProductTemplateAttributeLine.search_read( | ||
| domain=[ | ||
| ("product_tmpl_id", "in", search_product.ids), | ||
| ("attribute_id", "in", attributes.ids), | ||
| ("attribute_id.visibility", "=", "visible"), | ||
| ], | ||
| fields=["value_ids"], | ||
| ) | ||
| used_value_ids = { | ||
| value_id for line in lines for value_id in line.get("value_ids", []) | ||
| } | ||
| res["attr_values_used_ids"] = used_value_ids | ||
| return res |
Empty file.
Empty file.
Empty file.
Empty file.
14 changes: 14 additions & 0 deletions
14
website_sale_product_attribute_value_filter_existing/i18n/pt_BR.po
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 19.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "Last-Translator: Automatically generated\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" |
14 changes: 14 additions & 0 deletions
14
website_sale_product_attribute_value_filter_existing/i18n/tr.po
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 19.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "Last-Translator: Automatically generated\n" | ||
| "Language-Team: none\n" | ||
| "Language: tr\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" |
13 changes: 13 additions & 0 deletions
13
...ibute_value_filter_existing/i18n/website_sale_product_attribute_value_filter_existing.pot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 19.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" |
3 changes: 3 additions & 0 deletions
3
website_sale_product_attribute_value_filter_existing/pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [build-system] | ||
| requires = ["whool"] | ||
| build-backend = "whool.buildapi" |
5 changes: 5 additions & 0 deletions
5
website_sale_product_attribute_value_filter_existing/readme/CONFIGURATION.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| * Go to Website Shop | ||
| * Active product attributes filter on theme panel option of shopping page | ||
| - Click edit button on shopping page (or directly go url: http://{your-domain}/@/shop) | ||
| - On tab `Customize`, enable attributes filter to show attribute values left of the layout. | ||
| * System only display the attribute values if used. |
8 changes: 8 additions & 0 deletions
8
website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| - [Tecnativa](https://www.tecnativa.com): | ||
| - Victor M.M. Torres | ||
| - Sergio Teruel | ||
| - Carlos Roca | ||
| - Pilar Vargas | ||
|
|
||
| - [Trobz](https://trobz.com): | ||
| - Hoang Diep \<<hoang@trobz.com>\> |
2 changes: 2 additions & 0 deletions
2
website_sale_product_attribute_value_filter_existing/readme/CREDITS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| The migration of this module from 15.0 to 16.0 was financially supported | ||
| by Camptocamp |
2 changes: 2 additions & 0 deletions
2
website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 product attributes values which exist but not used on any variants. |
Binary file added
BIN
+9.23 KB
website_sale_product_attribute_value_filter_existing/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.