[10.0][FIX] mrp_production_request: do not allow to add MOs manually.

This commit is contained in:
Lois Rilo
2018-03-21 12:19:47 +01:00
committed by Chandresh Thakkar
parent c86310a03e
commit 3c8ccf6dd9

View File

@@ -99,7 +99,7 @@ class MrpProductionRequest(models.Model):
required=True, default=_company_get)
mrp_production_ids = fields.One2many(
comodel_name="mrp.production", string="Manufacturing Orders",
inverse_name="mrp_production_request_id")
inverse_name="mrp_production_request_id", readonly=True)
state = fields.Selection(
selection=[("draft", "Draft"),
("to_approve", "To Be Approved"),