mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_multi_level: black, isort, prettier
This commit is contained in:
committed by
JasminSForgeFlow
parent
7ab5e0f128
commit
957b50af16
@@ -500,9 +500,10 @@ class MultiLevelMrp(models.TransientModel):
|
||||
last_qty = 0.00
|
||||
nbr_create += 1
|
||||
if (
|
||||
(onhand + last_qty + move.mrp_qty) < product_mrp_area.mrp_minimum_stock
|
||||
or (onhand + last_qty) < product_mrp_area.mrp_minimum_stock
|
||||
):
|
||||
onhand + last_qty + move.mrp_qty
|
||||
) < product_mrp_area.mrp_minimum_stock or (
|
||||
onhand + last_qty
|
||||
) < product_mrp_area.mrp_minimum_stock:
|
||||
if not last_date or last_qty == 0.0:
|
||||
last_date = fields.Date.from_string(move.mrp_date)
|
||||
last_qty = move.mrp_qty
|
||||
|
||||
Reference in New Issue
Block a user