Skip to content
Snippets Groups Projects
Commit 6b05fb2b authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] website_sale_stock: products in multiple warehouses


- Create 2 warehouses A & B
- In the website settings, set the `inventory_availability` as `always`,
  but do not set a warehouse
- Create a Product P, make some stock in warehouse A
- Create a Product Q, make some stock in warehouse B
- Publish the products
- Go to `/shop` => both products have availability
- Add P in the cart => it works
- Add Q in the cart

Error: 'Some products became unavailable and your cart has been
updated...'.

This happens because the availability is checked on the warehouse of the
SO, not the warehouse of the website (not set in this case).

opw-2361768

closes odoo/odoo#60829

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 63f759b6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment