odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FW][FIX] sale: hide availability message when product doesn't exist

Open fw-bot opened this issue 9 months ago • 2 comments

Issue:

Availablity message and product doesn't exist shows at the same time.

Steps to reproduce the issue:

  • Create a storable product with 2 attributes each having 2 values
  • Set show available qty below 5 units
  • Remove one of the created variants
  • Set qty for all the other variants to 3 (anything less than 5 and > 0)
  • Go to website page of the product and switch between variants
  • You can see that when we go to the deleted variant it shows both messaged. "Deoesn't exist" message for the current variant and stock message from the old variant that we switched from

Origin of the issue:

When the product doesn't exist we don't update the availability message neither we hide it.

Solution:

We can use the same trick to show/hide the not available message but in the opposite logic to show/hide the availability message.

opw-3875941

Forward-Port-Of: odoo/odoo#163979

fw-bot avatar May 16 '24 22:05 fw-bot

Pull request status dashboard.

robodoo avatar May 16 '24 22:05 robodoo

@mtaylorr this PR targets master and is the last of the forward-port chain containing:

  • odoo/odoo#165881
  • odoo/odoo#165872
  • odoo/odoo#165858
  • odoo/odoo#165844
  • odoo/odoo#165826
  • odoo/odoo#165804

To merge the full chain, use

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

fw-bot avatar May 16 '24 22:05 fw-bot

@fw-bot r+

Mtaylorr avatar May 17 '24 06:05 Mtaylorr