Website Stock Availability Enhanced

Enhance the display of product availability on the website

Technical Name:
website_stock_availability_enhanced
License:
Author:
Numigi
https://kastor.lab.numigi.net/web/image/product.template/1493/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Website Stock Availability Enhanced

This module improves the stock availability on the e-commerce application.

Context

The e-commerce application in vanilla Odoo has limitations regarding the availability of products.

To determine whether a product is available for selling to a customer, Odoo uses the Forecast Quantity (a.k.a. the virtual quantity).

This quantity includes products that are expected to be received in the future.

The big issue here is that sometimes, products can take multiple months to be received from the supplier. It such case, you do not want your customers to expect their orders to be fullfiled soon.

Products

This module adds 4 extra fields on products.

static/description/product_form.png

1 - Prevent Sales Base On

In vanilla Odoo, sales are blocked if stock levels are below the Forecasted Quantity.

static/description/product_virtual_available_qty.png

When this module is installed, the Forecasted Quantity is never used to block a website sale.

The new field Prevent Sales Base On allows to select the metric that is used instead.

The available choices are:

  • Quantity available for sales
  • Quantity available including next replenishment

2 - Quantity Available For Sales

This metric includes the current stocks in hand, minus the forcasted quantities to deliver.

It does not include any incoming quantity.

3- Quantity Available Including Next Replenishment

This metric includes the quantity available for sales, plus the quantity of this product to be received in the next replenishment shipment.

4 - Next Replenishment Delay

This metric indicates the expected number of days until the next replenishment arrives.

If at least one replenishment shipment is scheduled for this product, the expected date of this shipment is used.

static/description/stock_picking_scheduled_date.png

Otherwise, the delay computed based on:

  • The lead time defined on the main supplier for this product.
  • Plus the sales and purchase lead time defined for the company.
static/description/product_first_vendor_delay.png static/description/company_lead_times.png

In the above example, the estimated lead time would be:

13 days = 8 days + 2 days + 3 days
static/description/product_replenishment_delay.png

Computation

These metrics are computed distinctly per company.

They are not computed based on the computing mecanisms of Odoo. They are computed asynchronously based on Queue Jobs.

This prevents the module from significantly impacting the performance of the system.

Write operations on stock moves trigger the recomputation of the metrics for a given product.

Also, a cron job is predefined to execute once per day. This cron triggers the recomputation of the metrics for all products.

Show Inventory Without Blocking

This field Availability contains two distinct principles mixed together.

  • Whether to show the stock level or not
  • Whether to block sales on insufficent stock level

One case that is not covered by the choices is to show the stock levels without blocking sales.

The module adds the option to show inventory below a threshold and allow sales.

static/description/product_availability_threshold_warning.png

Replenishment Delay Message

In the website form of the product, when the quantity available (minus the requested quantity) is below the threshold defined on the product, a message special message is shown to the user.

static/description/product_availability_threshold.png static/description/website_product_replenishment_message.png

After checking out the order, the delay displayed to the customer is written on the sale order line.

static/description/sale_order_line_delay.png

Contributors