Skip to content

Order fails for product configured to not manage stock in custom website #2097

Open
@priyasbhat

Description

@priyasbhat

Preconditions (*)

  1. Magento 2.3.0 installed and MSI enabled
  2. Create new Website: testing_website
    Stores___Settings___Stores___Magento_Admin
  3. Create new Source - testing_source
  4. Create new Stock - testing_stock add testing_source assine to testing_website*

Steps to reproduce (*)

  1. Go to Catalog -> Products and create a product with Advanced Inventory, Manage Stock option set to "No". Product is listed in both default website and Test website. No sources are assigned since we do not want to manage stock for this product.
  2. Go to Sales -> Orders and use the Create new order button to create an order. Select / create a customer and then select the Storeview for Test website to create order in.
  3. Click Add Products and select product created in step 1 and click Add selected Product(s) to Order.

Expected result (*)

  1. Product should be added successfully (screenshot attached)

Actual result (*)

  1. You will see an error "This product is out of stock." displayed
  2. On submitting order, the attached error is thrown.

MSI_2097

MSI_2097_stacktrace

Info is testing_website assigned to default stock it works fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions