[IMP] mrp_multi_level: Minor changes

* Planned Orders become fixed on manual creation by default
* Released Quantity become readonly
* Add product reference if Planned Order name is not defined on bom explosion
This commit is contained in:
hveficent
2020-02-20 10:09:56 +01:00
committed by davidborromeo
parent 02ebe95146
commit e1d85248a2
4 changed files with 35 additions and 5 deletions

View File

@@ -110,6 +110,7 @@ class MultiLevelMrp(models.TransientModel):
"mrp_action": product_mrp_area.supply_method,
"qty_released": 0.0,
"name": "Supply: " + name,
"fixed": False,
}
@api.model
@@ -138,9 +139,11 @@ class MultiLevelMrp(models.TransientModel):
"mrp_origin": "mrp",
"mrp_order_number": None,
"parent_product_id": bom.product_id.id,
"name": ("Demand Bom Explosion: " + name).replace(
"Demand Bom Explosion: Demand Bom " "Explosion: ",
"Demand Bom Explosion: ",
"name": (
"Demand Bom Explosion: %s"
% (name or product.product_id.default_code or product.product_id.name)
).replace(
"Demand Bom Explosion: Demand Bom Explosion: ", "Demand Bom Explosion: "
),
}