From 10960e0aef79d3b722e6d225bcefb9ffe0bd5fff Mon Sep 17 00:00:00 2001 From: Telmo Santos Date: Thu, 16 May 2024 09:16:17 +0200 Subject: [PATCH] [FIX] sale_stock_available_to_promise_release MTO sale availability status --- .../models/sale_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_stock_available_to_promise_release/models/sale_order_line.py b/sale_stock_available_to_promise_release/models/sale_order_line.py index 96612b8eee..8d1fe4f8cc 100644 --- a/sale_stock_available_to_promise_release/models/sale_order_line.py +++ b/sale_stock_available_to_promise_release/models/sale_order_line.py @@ -77,7 +77,7 @@ def _get_availability_data(self): if self._on_order_route(): availability_status = "on_order" # Fully available - elif ( + if ( product.type == "service" or float_compare( available_qty, self.product_uom_qty, precision_rounding=rounding