changeset 3f00fddaec84 in tryton:5.8
details: https://hg.tryton.org/tryton?cmd=changeset&node=3f00fddaec84
description:
Do not stop edition of CellRendererDate when calendar popup is visible
issue10443
review351981002
(grafted from efed57f8b0bd293cf1e97ba7f9eb4454c8d29239)
diffstat:
tryton/common/datetime_.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 96a6f4998c70 -r 3f00fddaec84 tryton/common/datetime_.py
--- a/tryton/common/datetime_.py Sat May 15 22:40:28 2021 +0200
+++ b/tryton/common/datetime_.py Wed May 26 23:45:27 2021 +0200
@@ -171,6 +171,9 @@
self.grab_focus()
self.emit('date-changed')
+ def cal_popup_is_visible(self):
+ return self.__cal_popup.is_visible()
+
def focus_out(self, entry, event):
previous_date = self.__date
self.parse()
@@ -265,6 +268,8 @@
# TODO emit edited
def __focus_out_event(self, entry, event):
+ if entry.cal_popup_is_visible():
+ return True
entry.props.editing_canceled = True
entry.editing_done()
entry.remove_widget()