changeset 8211e86562fc in modules/stock_supply:default
details:
https://hg.tryton.org/modules/stock_supply?cmd=changeset;node=8211e86562fc
description:
Set all fields readonly for inactive records
issue3747
review295061011
diffstat:
location.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 591f0351b359 -r 8211e86562fc location.py
--- a/location.py Wed Mar 11 15:18:15 2020 +0100
+++ b/location.py Tue Mar 17 20:08:13 2020 +0100
@@ -14,23 +14,21 @@
'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.')