Do not display delegated amount if it is 0

This prevents to display the currency when there is no amount delegated.
This commit is contained in:
Cédric Krier committed 2023-06-13 12:56:54 +02:00
1 parent 7fb22cc6aa
commit 9096dda5b4
1 file changed
+3 -1
+3 -1
View File
@@ -944,7 +944,9 @@ class Line(MoveLineMixin, ModelSQL, ModelView):
"Delegated Amount",
currency='amount_currency', digits='amount_currency',
states={
'invisible': ~Eval('reconciliation', False),
'invisible': (
~Eval('reconciliation', False)
| ~Eval('delegated_amount', 0)),
}),
'get_delegated_amount')
payable_receivable_balance = fields.Function(