[IMP] Make the related location readonly

This commit is contained in:
Joël Grand-Guillaume
2018-03-14 17:21:13 +01:00
committed by davidborromeo
parent 41567de6f2
commit 8416a3ed1a

View File

@@ -9,6 +9,7 @@ class MrpBom(models.Model):
location_id = fields.Many2one(
related='picking_type_id.default_location_dest_id',
readonly=True,
store=True,
)
@@ -18,5 +19,6 @@ class MrpBomLine(models.Model):
location_id = fields.Many2one(
related='bom_id.picking_type_id.default_location_src_id',
readonly=True,
store=True,
)