changeset 0afe01c0fac8 in modules/sale_shipment_cost:default
details:
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=0afe01c0fac8
description:
Make cost_sale readonly only in done and cancelled state
issue10827
review383231002
diffstat:
stock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f80f56604a5d -r 0afe01c0fac8 stock.py
--- a/stock.py Sat Oct 09 01:05:17 2021 +0200
+++ b/stock.py Sun Oct 10 22:42:47 2021 +0200
@@ -47,7 +47,7 @@
'invisible': (
~Eval('cost_edit', False)
| (Eval('cost_method') != 'shipment')),
- 'readonly': ~Eval('state').in_(['done', 'cancelled']),
+ 'readonly': Eval('state').in_(['done', 'cancelled']),
},
depends=['cost_method', 'state'])