Repository navigation
[20.0][ADD] website_sale_variant_published - #1417
Open
BhaveshHeliconia wants to merge 1 commit into
Open
BhaveshHeliconia wants to merge 1 commit into
BhaveshHeliconia wants to merge 1 commit into
Conversation
Author
|
@ivantodorovich @Ricardoalso @AungKoKoLin1997 @cristina-hidalgo-tecnativa @dreispt @adasatorres-tecnativa Could you please review this PR whenever you have a chance? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the
website_sale_variant_publishedmodule to control website visibility per product variant (product.product).Why
Odoo only lets you publish/unpublish at the
product.templatelevel. If a template has multiple variants and you only want to sell some of them on the website while keeping all variants active and sellable in the backend (Sales, POS, Inventory), archiving the variant isn't an option.What this module does
website_published_variantboolean toggle (defaultTrue) onproduct.productform and list views.website_idin context) from:_is_combination_possible()and_is_published()_only_active()onproduct.template.attribute.value(hiding attribute values with no published variants from the product page)/shopvariant preview swatches (_get_previewed_attribute_values)website_sale.specifications_table&_prepare_single_value_for_display)_get_attribute_exclusions,_get_mapped_attribute_names) and JSON-LDhasVariant(_prepare_jsonld_vals)