From 47606e2e77d42e71fb47124c77694c0b0fa3cc40 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 (grafted from 2913ea0aaf46c55ad563432a94edbd76a68bc0cd) --HG-- branch : 6.0 --- 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 054ba93618..b2c027a7e1 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)