diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index 6468837188..71422fc69c 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -447,7 +447,7 @@ class Screen(SignalEvent): def save_current(self): if not self.current_record: - if self.current_view == 'tree' and len(self.group): + if self.current_view.view_type == 'tree' and len(self.group): self.current_record = self.group[0] else: return True