diff --git a/tryton/gui/window/view_form/view/form_gtk/calendar.py b/tryton/gui/window/view_form/view/form_gtk/calendar.py index 2c684bb64e..7292c7e0cc 100644 --- a/tryton/gui/window/view_form/view/form_gtk/calendar.py +++ b/tryton/gui/window/view_form/view/form_gtk/calendar.py @@ -29,6 +29,10 @@ class Calendar(WidgetInterface): def _readonly_set(self, value): self.entry.set_editable(not value) + if value: + self.widget.set_focus_chain([]) + else: + self.widget.set_focus_chain([self.entry]) @property def modified(self):