Reviewers: ,


Please review this at http://codereview.tryton.org/399001/

Affected files:
  M tryton/gui/window/view_form/view/form_gtk/one2many.py


Index: tryton/gui/window/view_form/view/form_gtk/one2many.py
===================================================================

--- a/tryton/gui/window/view_form/view/form_gtk/one2many.py
+++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py
@@ -413,6 +413,12 @@
                 self.screen.domain = domain
             if not self.screen.group.readonly and readonly:
                 self.screen.group.readonly = readonly
+        if not self.screen.current_record and self.screen.group:
+            # Set a record to display
+            self.screen.current_record = self.screen.group[0]
+        else:
+            # Force record-message to update label
+            self.screen.current_record = self.screen.current_record
         self.screen.display()
         return True




--
[email protected] mailing list

Reply via email to