changeset d12d375a6f6d in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset&node=d12d375a6f6d
description:
Fallback to untaxed amount in PYSON expression about non-empty lines
issue10210
review347991002
diffstat:
purchase.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6cc4260323c6 -r d12d375a6f6d purchase.py
--- a/purchase.py Tue Mar 23 23:51:44 2021 +0100
+++ b/purchase.py Tue Mar 23 23:53:31 2021 +0100
@@ -276,7 +276,7 @@
()),
],
'invisible': Eval('state') != 'draft',
- 'readonly': ~Eval('lines', []),
+ 'readonly': ~Eval('lines', Eval('untaxed_amount', 0)),
'depends': ['state'],
},
'confirm': {