Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
aaa42fcf by Cédric Krier at 2023-06-13T12:56:54+02:00
Do not display delegated amount if it is 0

This prevents to display the currency when there is no amount delegated.
- - - - -


1 changed file:

- modules/account/move.py


Changes:

=====================================
modules/account/move.py
=====================================
@@ -944,7 +944,9 @@
             "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(



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/aaa42fcfcb74c5d0516177f1dc7aee19c1e9030a

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/aaa42fcfcb74c5d0516177f1dc7aee19c1e9030a
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to