changeset 200a2666feae in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=200a2666feae
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 38add15e5dee -r 200a2666feae tryton/gui/window/form.py
--- a/tryton/gui/window/form.py Sun Oct 31 10:14:37 2021 +0100
+++ b/tryton/gui/window/form.py Sun Oct 31 10:20:24 2021 +0100
@@ -640,7 +640,8 @@
         menu_save.props.sensitive = not self.screen.readonly
 
         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