From 8aca5fe72d65e85e98531b2ce4aa47320a940dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 16 Dec 2021 22:14:22 +0100 Subject: [PATCH] Check screen limit is None before comparing issue11015 review389361002 --- tryton/gui/window/form.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/form.py b/tryton/gui/window/form.py index 5026e5b245..5ee1f1c6a9 100644 --- a/tryton/gui/window/form.py +++ b/tryton/gui/window/form.py @@ -641,6 +641,7 @@ class Form(SignalEvent, TabContent): 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)