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:
1 parent
7fb22cc6aa
commit
9096dda5b4
1 file changed
+3
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user