mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] Make the related location readonly
This commit is contained in:
committed by
davidborromeo
parent
41567de6f2
commit
8416a3ed1a
@@ -9,6 +9,7 @@ class MrpBom(models.Model):
|
|||||||
|
|
||||||
location_id = fields.Many2one(
|
location_id = fields.Many2one(
|
||||||
related='picking_type_id.default_location_dest_id',
|
related='picking_type_id.default_location_dest_id',
|
||||||
|
readonly=True,
|
||||||
store=True,
|
store=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -18,5 +19,6 @@ class MrpBomLine(models.Model):
|
|||||||
|
|
||||||
location_id = fields.Many2one(
|
location_id = fields.Many2one(
|
||||||
related='bom_id.picking_type_id.default_location_src_id',
|
related='bom_id.picking_type_id.default_location_src_id',
|
||||||
|
readonly=True,
|
||||||
store=True,
|
store=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user