changeset 2913ea0aaf46 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=2913ea0aaf46
description:
        Check screen limit is None before comparing

        issue11015
        review389361002
diffstat:

 tryton/gui/window/form.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 0a186f042b47 -r 2913ea0aaf46 tryton/gui/window/form.py
--- a/tryton/gui/window/form.py Mon Dec 13 23:10:13 2021 +0100
+++ b/tryton/gui/window/form.py Thu Dec 16 22:14:22 2021 +0100
@@ -641,6 +641,7 @@
 
         msg = name + ' / ' + str(signal_data[1])
         if (signal_data[1] < signal_data[2]
+                and self.screen.limit is not None
                 and signal_data[2] > self.screen.limit):
             msg += _(' of ') + str(signal_data[2])
         self.status_label.set_text(msg)

Reply via email to