changeset ce41464ec5c1 in tryton:5.8
details: https://hg.tryton.org/tryton?cmd=changeset&node=ce41464ec5c1
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 0b8963092e77 -r ce41464ec5c1 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
@@ -529,7 +529,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()