[FIX] sale_stock_available_info_popup: immediately_usable_qty_today triggers.

TT38197
This commit is contained in:
Cesar Andres Sanchez
2022-07-26 12:27:45 +02:00
committed by david
parent abe58ac858
commit 0c4567f979
2 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,13 @@ class SaleOrderLine(models.Model):
compute="_compute_immediately_usable_qty_today"
)
@api.depends("product_id", "product_uom_qty")
@api.depends(
"product_id",
"product_uom_qty",
"order_id.commitment_date",
"order_id.date_order",
"warehouse_id",
)
def _compute_immediately_usable_qty_today(self):
qty_processed_per_product = defaultdict(lambda: 0)
self.immediately_usable_qty_today = False

View File

@@ -3,3 +3,4 @@
* Ernesto Tejeda
* Pedro M. Baeza
* Víctor Martínez
* César A. Sánchez