Skip to content

Commit

Permalink
[FIX] website_sale_product_attribute_value_filter_existing: Add attri…
Browse files Browse the repository at this point in the history
…bute ‘Test yellow'

It is being checked that the attribute ‘Test yellow’ is not present in
the filter panel as it is not being used in any product.
Actually, no real check is being made if the attribute is not defined.
It is a fact, if it is not defined, it does not exist and will not be
present at all.
  • Loading branch information
pilarvargas-tecnativa committed Oct 25, 2024
1 parent f56e877 commit 05ddaf2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def setUpClass(cls):
cls.product_attribute_value_blue = ProductAttributeValue.create(
{"name": "Test blue", "attribute_id": cls.product_attribute.id}
)
cls.product_attribute_value_yellow = ProductAttributeValue.create(
{"name": "Test yellow", "attribute_id": cls.product_attribute.id}
)
cls.product_template = cls.env.ref("product.product_product_4_product_template")
cls.product_attribute_line = ProductAttributeLine.create(
{
Expand Down

0 comments on commit 05ddaf2

Please sign in to comment.