Set cursor when displaying screen to select new record after copy

Closes #12820
This commit is contained in:
Cédric Krier
2024-03-22 12:52:19 +01:00
parent 8dc319a4cb
commit cd345c2399
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1707,7 +1707,7 @@
if (!jQuery.isEmptyObject(new_ids)) {
this.current_record = this.group.get(new_ids[0]);
}
this.display().always(dfd.resolve);
this.display(true).always(dfd.resolve);
}, dfd.reject);
return dfd.promise();
},
@@ -826,7 +826,7 @@ class Screen:
self.group.load(new_ids, position=self.new_position)
if new_ids:
self.current_record = self.group.get(new_ids[0])
self.display()
self.display(set_cursor=True)
return True
def set_tree_state(self):