changeset 0c3dbdd6c4b1 in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=0c3dbdd6c4b1
description:
        Do not display search_count if it is not higher than limit

        On small set of record when records are deleted the number of record 
could
        become lower than the initial search_count. As maintaining a correct
        search_count is complex, it is simpler to never display it if it is 
lower than
        the search limit.

        issue10789
        review383501003
        (grafted from 07165c9a8fc19768f45170df622e0998e85abee5)
diffstat:

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

diffs (13 lines):

diff -r ce5f733b02e4 -r 0c3dbdd6c4b1 tryton/gui/window/form.py
--- a/tryton/gui/window/form.py Tue Oct 26 19:40:49 2021 +0200
+++ b/tryton/gui/window/form.py Sun Oct 31 10:20:24 2021 +0100
@@ -484,7 +484,8 @@
         button_switch.props.sensitive = self.screen.number_of_views > 1
 
         msg = name + ' / ' + str(signal_data[1])
-        if signal_data[1] < signal_data[2]:
+        if (signal_data[1] < signal_data[2]
+                and signal_data[2] > self.screen.limit):
             msg += _(' of ') + str(signal_data[2])
         self.status_label.set_text(msg)
         self.message_info()

Reply via email to