From e28cc65ccedfdfbbb299172db87a16ebcb98682b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Mar 2020 20:08:13 +0100 Subject: [PATCH] Set all fields readonly for inactive records issue3747 review295061011 --- location.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/location.py b/location.py index 7482a148d8..9499396cc5 100644 --- a/location.py +++ b/location.py @@ -14,23 +14,21 @@ class Location(metaclass=PoolMeta): 'Provisioning Location', states={ 'invisible': Eval('type') != 'storage', - 'readonly': ~Eval('active'), }, domain=[ ('type', 'in', ['storage', 'view']), ], - depends=['type', 'active'], + depends=['type'], help='Leave empty for no default provisioning.') overflowing_location = fields.Many2One('stock.location', 'Overflowing Location', states={ 'invisible': Eval('type') != 'storage', - 'readonly': ~Eval('active'), }, domain=[ ('type', 'in', ['storage', 'view']), ], - depends=['type', 'active'], + depends=['type'], help='Leave empty for no default overflowing.')