get_focus_chain can return None
issue4318 review5721002
This commit is contained in:
1 parent
0b4bd46c3c
commit
1768b21d89
1 file changed
+1
-1
@@ -301,7 +301,7 @@ class One2Many(Widget):
|
||||
|
||||
# New button must be added to focus chain to allow keyboard only
|
||||
# creation when there is no existing record on form view.
|
||||
focus_chain = self.title_box.get_focus_chain()
|
||||
focus_chain = self.title_box.get_focus_chain() or []
|
||||
if o2m_size == 0 and self.screen.current_view.view_type == 'form':
|
||||
if self.but_new not in focus_chain:
|
||||
focus_chain.append(self.but_new)
|
||||
|
||||
Reference in new issue
Block a user