Fallback to untaxed amount in PYSON expression about non-empty lines

issue10210
review347991002
This commit is contained in:
Cédric Krier committed 2021-03-23 23:53:31 +01:00
1 parent 50ed519bf9
commit ea89abb8da
1 file changed
+1 -1
+1 -1
View File
@@ -276,7 +276,7 @@ class Purchase(
()),
],
'invisible': Eval('state') != 'draft',
'readonly': ~Eval('lines', []),
'readonly': ~Eval('lines', Eval('untaxed_amount', 0)),
'depends': ['state'],
},
'confirm': {