stock_usability: add tracking on is_locked field of pickings

This commit is contained in:
Alexis de Lattre
2020-10-13 10:07:36 +02:00
parent f605b56a5e
commit 1b931d066b

View File

@@ -19,6 +19,7 @@ class StockPicking(models.Model):
move_type = fields.Selection(track_visibility='onchange')
# Can be used in view to hide some fields depending of pick type
picking_type_code = fields.Selection(related='picking_type_id.code')
is_locked = fields.Boolean(track_visibility='onchange')
@api.multi
def do_unreserve(self):