[MIG] stock_demand_estimate_matrix: Migration to 17.0

This commit is contained in:
JasminSForgeFlow
2024-05-20 12:11:46 +05:30
committed by Lois Rilo
parent e8f5eb15ab
commit 2142cbab9f
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Stock Demand Estimate Matrix",
"summary": "Allows to create demand estimates.",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"development_status": "Production/Stable",
"website": "https://github.com/OCA/stock-logistics-warehouse",

View File

@@ -61,7 +61,7 @@ class StockDemandEstimateSheet(models.TransientModel):
for product in sheet.product_ids:
for _range in ranges:
estimate = estimates.filtered(
lambda x: (
lambda x, _range=_range, product=product: (
x.date_range_id == _range and x.product_id == product
)
)