mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_demand_estimate_matrix: Migration to 17.0
This commit is contained in:
committed by
Lois Rilo
parent
e8f5eb15ab
commit
2142cbab9f
@@ -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",
|
||||
|
||||
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user