parameters: (self)
return_statement: return self.action_show_details()
docstring: On `self.move_line_ids`, assign `lot_name` according to
          `self.next_serial` before returning `self.action_show_details`.
docstring_summary: On `self.move_line_ids`, assign `lot_name` according to
          `self.next_serial` before returning `self.action_show_details`.
docstring_tokens: On self . move_line_ids assign lot_name according to self . next_serial before returning self . action_show_details .
function: def action_assign_serial_show_details(self):
          """ On `self.move_line_ids`, assign `lot_name` according to
          `self.next_serial` before returning `self.action_show_details`.
          """
          self.ensure_one()
          if not self.next_serial:
              raise UserError(_("You need to set a Serial Number before generating more."))
          self._generate_serial_numbers()
          return self.action_show_details()
function_tokens: def action_assign_serial_show_details ( self ) : self . ensure_one ( ) if not self . next_serial : raise UserError ( _ ( "You need to set a Serial Number before generating more." ) ) self . _generate_serial_numbers ( ) return self . action_show_details ( )